mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 11:57:32 +09:00
Issue #1970 - Part 2: Remove the extra padding on buttons
Extra padding was created for a prospective -moz-focus-inner ring. We now just size that ring the same as the content frame, inflated by its CSS padding.
This commit is contained in:
parent
8de47d99c4
commit
e54e8f61bb
6 changed files with 44 additions and 175 deletions
|
|
@ -2036,9 +2036,6 @@ moz_gtk_get_widget_border(WidgetNodeType widget, gint* left, gint* top,
|
|||
if (widget == MOZ_GTK_TOOLBAR_BUTTON)
|
||||
gtk_style_context_restore(style);
|
||||
|
||||
// XXX: Subtract 1 pixel from the border to account for the added
|
||||
// -moz-focus-inner border (Bug 1228281).
|
||||
*left -= 1; *top -= 1; *right -= 1; *bottom -= 1;
|
||||
moz_gtk_add_style_border(style, left, top, right, bottom);
|
||||
|
||||
ReleaseStyleContext(style);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue