Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
007ea937
Commit
007ea937
authored
7 years ago
by
Kirill Kirichenko
1
Browse files
Options
Download
Email Patches
Plain Diff
IDEA-184760 UI rendering issues in Android designer
parent
365fa106
Branches unavailable
Tags unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ActionButtonWithText.java
+5
-1
...ellij/openapi/actionSystem/impl/ActionButtonWithText.java
with
5 additions
and
1 deletion
+5
-1
platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ActionButtonWithText.java
+
5
-
1
View file @
007ea937
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
小 白蛋
@baidan
mentioned in commit
59bacfa9
·
2 years ago
mentioned in commit
59bacfa9
mentioned in commit 59bacfa9bbae577664c05691e112574aa26811e2
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help