Commit 007ea937 authored by Kirill Kirichenko's avatar Kirill Kirichenko
Browse files

IDEA-184760 UI rendering issues in Android designer

parent 365fa106
Branches unavailable Tags unavailable
No related merge requests found
Showing with 5 additions and 1 deletion
+5 -1
......@@ -134,7 +134,7 @@ public class ActionButtonWithText extends ActionButton {
public void paintComponent(Graphics g) {
Icon icon = getIcon();
FontMetrics fm = getFontMetrics(getFont());
Rectangle viewRect = new Rectangle(getSize());
Rectangle viewRect = getButtonRect();
JBInsets.removeFrom(viewRect, getInsets());
Rectangle iconRect = new Rectangle();
......@@ -156,6 +156,10 @@ public class ActionButtonWithText extends ActionButton {
textRect.y + fm.getAscent());
}
protected Rectangle getButtonRect() {
return new Rectangle(getSize());
}
@Override
protected void presentationPropertyChanded(PropertyChangeEvent e) {
super.presentationPropertyChanded(e);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment