Skip to content

Commit

Permalink
tweak scope image baseline for chrome on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Mar 28, 2012
1 parent c04f693 commit 12dc915
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -13,11 +13,14 @@
package org.rstudio.studio.client.workbench.views.source.editors.text.status;

import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.*;

import org.rstudio.core.client.BrowseCap;
import org.rstudio.core.client.widget.IsWidgetWithHeight;

public class StatusBarWidget extends Composite
Expand All @@ -37,6 +40,10 @@ public StatusBarWidget()

hpanel.setCellWidth(hpanel.getWidget(2), "100%");

// tweak image baseline for ubuntu mono on chrome
if (BrowseCap.hasUbuntuFonts() && BrowseCap.isChrome())
scopeIcon_.getElement().getStyle().setTop(0, Unit.PX);

initWidget(hpanel);

height_ = 16;
Expand Down

0 comments on commit 12dc915

Please sign in to comment.