]> source.dussan.org Git - jquery-ui.git/log
jquery-ui.git
9 years agoTests: Adding missing dependency
TJ VanToll [Thu, 23 Oct 2014 02:21:58 +0000 (22:21 -0400)]
Tests: Adding missing dependency

9 years agoBuild: Upgrade to grunt-git-authors 2.0.0 and add update-authors task
Scott González [Fri, 24 Oct 2014 13:21:46 +0000 (09:21 -0400)]
Build: Upgrade to grunt-git-authors 2.0.0 and add update-authors task

Closes gh-1378

9 years agoDatepicker: Fixed month names and firstDay value in Arabic locale
Mohammed Alshehri [Sun, 11 May 2014 20:30:07 +0000 (23:30 +0300)]
Datepicker: Fixed month names and firstDay value in Arabic locale

Fixes #10035
Closes gh-1246

9 years agoSelectmenu: Remove broken tabindex code
Scott González [Wed, 22 Oct 2014 16:27:37 +0000 (12:27 -0400)]
Selectmenu: Remove broken tabindex code

9 years agoBuild: Upgrade to commitplease 2.0.0
Jörn Zaefferer [Wed, 22 Oct 2014 15:53:42 +0000 (17:53 +0200)]
Build: Upgrade to commitplease 2.0.0

commitplease now accepts "[tmp]:" and similar to temporary commits,
useful while updating pull requests that are squashed later.

9 years agoAll: Drop support for IE7
Scott González [Mon, 20 Oct 2014 23:18:34 +0000 (19:18 -0400)]
All: Drop support for IE7

Fixes #9838
Closes gh-1365

9 years agoCore: Remove .zIndex()
Scott González [Mon, 20 Oct 2014 23:29:35 +0000 (19:29 -0400)]
Core: Remove .zIndex()

Fixes #9156

9 years agoCore: Removed .focus( delay )
Scott González [Mon, 20 Oct 2014 23:26:01 +0000 (19:26 -0400)]
Core: Removed .focus( delay )

Fixes #9649

9 years agoDialog: Remove leftover backcompat flag in tests
Scott González [Mon, 20 Oct 2014 23:07:43 +0000 (19:07 -0400)]
Dialog: Remove leftover backcompat flag in tests

9 years agoDemos: Remove duplicate CSS properties
Bruno Pérel [Mon, 20 Oct 2014 12:09:27 +0000 (14:09 +0200)]
Demos: Remove duplicate CSS properties

Closes gh-1363

9 years agoAutocomplete: Remove duplicate array key in demo
Bruno Pérel [Mon, 20 Oct 2014 12:09:13 +0000 (14:09 +0200)]
Autocomplete: Remove duplicate array key in demo

Ref gh-1363

9 years agoDatePicker: datepicker_instActive released on instance destroy
Chen Eshchar [Sun, 19 Oct 2014 06:37:21 +0000 (09:37 +0300)]
DatePicker: datepicker_instActive released on instance destroy

Fixes #10668
Closes gh-1362

10 years agoBuild: Update version to 1.12.0-pre
Scott González [Thu, 16 Oct 2014 19:04:12 +0000 (15:04 -0400)]
Build: Update version to 1.12.0-pre

10 years agoBuild: Updating the master version to 1.11.3-pre.
Scott González [Thu, 16 Oct 2014 12:44:07 +0000 (08:44 -0400)]
Build: Updating the master version to 1.11.3-pre.

10 years agoSelectmenu: Preserve text selection and button focus on click
Scott González [Thu, 9 Oct 2014 14:25:26 +0000 (10:25 -0400)]
Selectmenu: Preserve text selection and button focus on click

Fixes #10639
Closes gh-1358

10 years agoBuild: Update authors list
Scott González [Tue, 14 Oct 2014 19:56:41 +0000 (15:56 -0400)]
Build: Update authors list

10 years agoTooltip: Properly track hiding and closing for delegated tooltips
Scott González [Tue, 30 Sep 2014 13:44:34 +0000 (09:44 -0400)]
Tooltip: Properly track hiding and closing for delegated tooltips

Fixes #10602
Closes gh-1353

10 years agoSlider: Don't allow a slider's value to exceed its max
Jyoti Deka [Sat, 19 Oct 2013 04:56:20 +0000 (00:56 -0400)]
Slider: Don't allow a slider's value to exceed its max

Fixes #9376
Closes gh-1016

10 years agoDatepicker: Fix test for French locale
Scott González [Tue, 7 Oct 2014 15:21:04 +0000 (11:21 -0400)]
Datepicker: Fix test for French locale

Ref #10651

10 years agoDatepicker: Fix French locale
Scott González [Tue, 7 Oct 2014 14:53:49 +0000 (10:53 -0400)]
Datepicker: Fix French locale

Thanks Jérémy M

Fixes #10651
Closes gh-1357

10 years agoMenu: Typeahead now accounts for leading whitespace
Trisha Crowley [Tue, 7 Oct 2014 02:26:29 +0000 (22:26 -0400)]
Menu: Typeahead now accounts for leading whitespace

Fixes #10649
Closes gh-1356

10 years agoMenu: Remove a redundant check 1355/head
TJ VanToll [Fri, 3 Oct 2014 14:01:51 +0000 (10:01 -0400)]
Menu: Remove a redundant check

Closes gh-1355

10 years agoMenu: Maintain focus on already selected item during typeahead
TJ VanToll [Thu, 2 Oct 2014 21:15:07 +0000 (17:15 -0400)]
Menu: Maintain focus on already selected item during typeahead

Fixes #10644
Closes gh-1354

10 years agoMenu: Filter out non-items when typing
Simen Bekkhus [Fri, 29 Aug 2014 12:18:47 +0000 (14:18 +0200)]
Menu: Filter out non-items when typing

Fixes #10571
Closes gh-1329

10 years agoDatepicker: Fix currentText in Greek locale
Scott González [Mon, 22 Sep 2014 13:44:03 +0000 (09:44 -0400)]
Datepicker: Fix currentText in Greek locale

Thanks Nikos Kalogridis

Fixes #10620
Closes gh-1349

10 years agoMenu: Adding a demo showing how to create category headers
TJ VanToll [Fri, 19 Sep 2014 19:12:35 +0000 (15:12 -0400)]
Menu: Adding a demo showing how to create category headers

Closes gh-1347

10 years agoEffects Demos: Fix typeErrors on puff and size demos
Mike Sherov [Wed, 10 Sep 2014 00:25:49 +0000 (20:25 -0400)]
Effects Demos: Fix typeErrors on puff and size demos

10 years agoEffects tests: Add clip visual test
Mike Sherov [Wed, 3 Sep 2014 17:13:25 +0000 (13:13 -0400)]
Effects tests: Add clip visual test

Closes gh-1338

10 years agoCONTRIBUTING: Close parenthesis
Richard Gibson [Wed, 3 Sep 2014 12:55:18 +0000 (08:55 -0400)]
CONTRIBUTING: Close parenthesis

Closes gh-1337

10 years agoTests: Cleanup
Scott González [Wed, 3 Sep 2014 12:37:51 +0000 (08:37 -0400)]
Tests: Cleanup

10 years agoEffects Tests: Add shake visual test
Mike Sherov [Thu, 28 Aug 2014 14:01:22 +0000 (10:01 -0400)]
Effects Tests: Add shake visual test

Closes gh-1328

10 years agoEffects Tests: Fix and format scale visual test
Mike Sherov [Thu, 28 Aug 2014 13:04:20 +0000 (09:04 -0400)]
Effects Tests: Fix and format scale visual test

10 years agoWidget: modify this.window test to support IE8 window equality quirk
Alexander Schmitz [Wed, 27 Aug 2014 23:33:38 +0000 (19:33 -0400)]
Widget: modify this.window test to support IE8 window equality quirk

Comparing this.window with strict equality fails in IE8

10 years agoTabs: Fix description in ajax demo
Scott González [Wed, 27 Aug 2014 18:07:52 +0000 (14:07 -0400)]
Tabs: Fix description in ajax demo

Closes jquery/jqueryui.com#90

10 years agoMenu: Ignore mouseenter events while typeahead is actice 1325/head
Jörn Zaefferer [Wed, 27 Aug 2014 16:27:06 +0000 (13:27 -0300)]
Menu: Ignore mouseenter events while typeahead is actice

Prevents focusing the wrong item when typeahead causes a scroll while the mouse
is over an item in the menu.

Fixes #10458

10 years agoWidget: Ensure window and document are defined in _getCreateOptions()
Alexander Schmitz [Thu, 21 Aug 2014 13:02:45 +0000 (09:02 -0400)]
Widget: Ensure window and document are defined in _getCreateOptions()

Closes gh-1320

10 years agoDraggable: Add battery of tests to cover connectToSortable 1323/head
Mike Sherov [Tue, 26 Aug 2014 12:50:50 +0000 (08:50 -0400)]
Draggable: Add battery of tests to cover connectToSortable

Refs #9481
Refs #9675
Closes gh-1323

10 years agoSortable: cancelHelperRemoval only considers helper, not placeholder
Mike Sherov [Mon, 25 Aug 2014 14:28:39 +0000 (10:28 -0400)]
Sortable: cancelHelperRemoval only considers helper, not placeholder

Refs #9675

10 years agoDraggable: Whitespace and naming cleanup of connectToSortable
Mike Sherov [Mon, 25 Aug 2014 12:49:30 +0000 (08:49 -0400)]
Draggable: Whitespace and naming cleanup of connectToSortable

10 years agoDraggable: Refresh sortables when draggable is added or removed
Mike Sherov [Mon, 25 Aug 2014 12:21:15 +0000 (08:21 -0400)]
Draggable: Refresh sortables when draggable is added or removed

Since a sortable grows or shrinks when a draggable element is added
to it, refresh the cached positions of sortables whenever an element
is added or removed from the sortable.

Refs #9675

10 years agoDraggable: Clarify comments and whitespace in connectToSortable
Mike Sherov [Mon, 25 Aug 2014 01:12:16 +0000 (21:12 -0400)]
Draggable: Clarify comments and whitespace in connectToSortable

10 years agoDraggable: Ensure sortable revert still works after draggable is removed
Mike Sherov [Mon, 25 Aug 2014 01:10:08 +0000 (21:10 -0400)]
Draggable: Ensure sortable revert still works after draggable is removed

Fixes #9481

10 years agoDraggable: Ensure css is always restored after connectToSortable drag
Mike Sherov [Mon, 25 Aug 2014 01:08:02 +0000 (21:08 -0400)]
Draggable: Ensure css is always restored after connectToSortable drag

Fixes #9675

10 years agoDraggable: Ensure correct widget removes helper in connectToSortable
Mike Sherov [Sun, 24 Aug 2014 19:06:51 +0000 (15:06 -0400)]
Draggable: Ensure correct widget removes helper in connectToSortable

10 years agoDraggable: append divs to iframe parent for iframefix
Mike Sherov [Sun, 24 Aug 2014 11:19:38 +0000 (07:19 -0400)]
Draggable: append divs to iframe parent for iframefix

This allows the blocking div to move with the iframe in
most situations, whereas appending to the body wouldn't.

Fixes #9671

10 years agoDraggable: Check all parents for fixed positioning when scrolling
Mike Sherov [Sat, 23 Aug 2014 19:34:04 +0000 (15:34 -0400)]
Draggable: Check all parents for fixed positioning when scrolling

Fixes #9612

10 years agoDraggable: No cloning in connectToSortable and ensure correct position
Mike Sherov [Fri, 22 Aug 2014 19:16:41 +0000 (15:16 -0400)]
Draggable: No cloning in connectToSortable and ensure correct position

Draggables now forcefully recalculate their position when dragged out
of a sortable. Sortables now override draggable position when a
draggable is dragged into it. Lastly, no longer remove sortable helper
when dragging a draggable out, which allows us to not use a clone.

Fixes #7734
Fixes #8809
Closes gh-1322

10 years agoDraggable: Clean spacing and names in connectToSortable drag callback
Mike Sherov [Thu, 21 Aug 2014 23:19:58 +0000 (19:19 -0400)]
Draggable: Clean spacing and names in connectToSortable drag callback

10 years agoDraggable Tests: Ensure scrolling and dragging tests assert correctly
Dave Stein [Fri, 22 Aug 2014 15:51:15 +0000 (11:51 -0400)]
Draggable Tests: Ensure scrolling and dragging tests assert correctly

10 years agoBuild: Pull in jquery.simulate.js from Bower
Mike Sherov [Fri, 22 Aug 2014 21:01:50 +0000 (17:01 -0400)]
Build: Pull in jquery.simulate.js from Bower

Fixes #10563

10 years agoAccordion: Avoid memory leak during refresh
Scott González [Wed, 20 Aug 2014 20:04:54 +0000 (16:04 -0400)]
Accordion: Avoid memory leak during refresh

Ref #10056
Closes gh-1319

10 years agoTabs: Avoid memory leak during refresh
Scott González [Wed, 20 Aug 2014 19:57:12 +0000 (15:57 -0400)]
Tabs: Avoid memory leak during refresh

Fixes #10056
Ref gh-1319

10 years agoWidget: Avoid memory leaks when unbinding events with `._off()`
Scott González [Wed, 20 Aug 2014 19:54:31 +0000 (15:54 -0400)]
Widget: Avoid memory leaks when unbinding events with `._off()`

Ref #10056
Ref gh-1319

10 years agoDraggable Tests: Fix failures due to fractional widths
Mike Sherov [Thu, 21 Aug 2014 01:10:33 +0000 (21:10 -0400)]
Draggable Tests: Fix failures due to fractional widths

10 years agoMouse: Only detect out of document mouseups after a mousemove
Mike Sherov [Tue, 19 Aug 2014 19:09:28 +0000 (15:09 -0400)]
Mouse: Only detect out of document mouseups after a mousemove

This prevents the firing of mouseup in the case of IE<9, which will
fire a mousemove event if content is placed under the cursor on
mousedown.

Fixes #7778

10 years agoDatepicker: Fix month names in Persian locale
Scott González [Wed, 20 Aug 2014 14:11:06 +0000 (10:11 -0400)]
Datepicker: Fix month names in Persian locale

Fixes #10562
Closes gh-1221

10 years agoDraggable: Ensure helper is positioned even if its the element itself
Mike Sherov [Fri, 15 Aug 2014 01:17:28 +0000 (21:17 -0400)]
Draggable: Ensure helper is positioned even if its the element itself

Fixes #9446

10 years agoDraggable: Set explicit width/height instead of right/bottom css.
Uri Gilad [Fri, 29 Mar 2013 00:03:14 +0000 (03:03 +0300)]
Draggable: Set explicit width/height instead of right/bottom css.

Fixes #7772

10 years agoDraggable: Ensure overflow:visible containments are correctly measured
Mike Sherov [Sun, 17 Aug 2014 18:38:05 +0000 (14:38 -0400)]
Draggable: Ensure overflow:visible containments are correctly measured

Fixes #7016

10 years agoDraggable: Only focus the draggable if the event occurs on a handle
Mike Sherov [Sat, 16 Aug 2014 13:44:05 +0000 (09:44 -0400)]
Draggable: Only focus the draggable if the event occurs on a handle

Refs #10527

10 years agoDraggable: Only blur the focused element if the event occurs on a handle
TJ VanToll [Fri, 15 Aug 2014 15:09:19 +0000 (11:09 -0400)]
Draggable: Only blur the focused element if the event occurs on a handle

Fixes #10527

10 years ago Draggable: Recalculate hash offset on start after plugins run
Mike Sherov [Sun, 17 Aug 2014 01:27:16 +0000 (21:27 -0400)]
 Draggable: Recalculate hash offset on start after plugins run

 Fixes #6884

10 years agoDraggable: Fix whitespace in trigger function
Mike Sherov [Sun, 17 Aug 2014 01:22:58 +0000 (21:22 -0400)]
Draggable: Fix whitespace in trigger function

10 years agoDraggable Tests: Clarify position helper test generation
Mike Sherov [Fri, 15 Aug 2014 01:03:18 +0000 (21:03 -0400)]
Draggable Tests: Clarify position helper test generation

10 years agoDraggable: Account for margins when snapping
Mike Sherov [Thu, 14 Aug 2014 13:50:02 +0000 (09:50 -0400)]
Draggable: Account for margins when snapping

Fixes #9724

10 years agoBuild: Update jscs and fix some code style issues 1311/head
Jörn Zaefferer [Wed, 13 Aug 2014 16:29:28 +0000 (18:29 +0200)]
Build: Update jscs and fix some code style issues

Disables the checks for casing and line length, since those need a lot
more effort to address. For variable naming the fix isn't obvious to me.
There's way too many lines over 100 chars.

10 years agoResizable Tests: fix IE8 test fail due to unspecified border style
Mike Sherov [Thu, 14 Aug 2014 03:06:21 +0000 (23:06 -0400)]
Resizable Tests: fix IE8 test fail due to unspecified border style

IE <9 does not correctly set the height of an element if the borderWidth
is non-zero but no borderStyle is specified.

10 years agoDraggable Tests: Fix IE8 test when native scroll happens
Mike Sherov [Thu, 14 Aug 2014 02:26:04 +0000 (22:26 -0400)]
Draggable Tests: Fix IE8 test when native scroll happens

10 years agoSortable: fire "over" and "out" even when a connectWith hasn't changed
Andrei Picus [Tue, 14 Jan 2014 09:10:27 +0000 (11:10 +0200)]
Sortable: fire "over" and "out" even when a connectWith hasn't changed

Fixes #9335

10 years agoDroppable: Account for draggable margins when detecting hover
Mike Sherov [Wed, 13 Aug 2014 23:36:07 +0000 (19:36 -0400)]
Droppable: Account for draggable margins when detecting hover

Fixes #6876

10 years agoBuild: Updating the master version to 1.11.2-pre.
Jörn Zaefferer [Wed, 13 Aug 2014 11:40:43 +0000 (13:40 +0200)]
Build: Updating the master version to 1.11.2-pre.

10 years agoAuthors: Update
Jörn Zaefferer [Wed, 13 Aug 2014 10:53:11 +0000 (12:53 +0200)]
Authors: Update

10 years agoDraggable: ignore overflow:hidden containers with scroll option
Mike Sherov [Sun, 10 Aug 2014 03:11:16 +0000 (23:11 -0400)]
Draggable: ignore overflow:hidden containers with scroll option

While it is true that overflow:hidden elements can be scrolled
programatically, this breaks user expectation. Therefore, do not
 scroll inside an overflow:hidden container.

10 years agoDraggable: clean up whitespace in scroll option
Mike Sherov [Sun, 10 Aug 2014 03:06:18 +0000 (23:06 -0400)]
Draggable: clean up whitespace in scroll option

10 years agoDraggable: consider offsets from overflow:hidden parents
Mike Sherov [Sun, 10 Aug 2014 03:00:58 +0000 (23:00 -0400)]
Draggable: consider offsets from overflow:hidden parents

Developers can programmatically set scrollTop/Left on
draggable containers that are overflow:hidden. They must
be considered for positioning.

Fixes #10147

10 years agoCore: provide "includeHidden" parameter in $.ui.scrollParent
Mike Sherov [Thu, 7 Aug 2014 12:40:48 +0000 (08:40 -0400)]
Core: provide "includeHidden" parameter in $.ui.scrollParent

Even though the user is unable to scroll via the UI, authors
may have custom scrollbars that programmatically set scrollTop.
Therefore, overflow:hidden can be considered a scrollParent.

10 years agoDraggable Tests: Fix several whitespace issues.
Mike Sherov [Thu, 7 Aug 2014 12:19:30 +0000 (08:19 -0400)]
Draggable Tests: Fix several whitespace issues.

10 years agoResizable: fix JSCS violations
Mike Sherov [Mon, 11 Aug 2014 13:51:45 +0000 (09:51 -0400)]
Resizable: fix JSCS violations

10 years agoDroppable: only consider pointer location with tolerance "pointer"
Will Holley [Tue, 21 May 2013 14:19:14 +0000 (15:19 +0100)]
Droppable: only consider pointer location with tolerance "pointer"

Fixes #4977
Closes gh-991

10 years agoDroppable Tests: fix whitespace in droppable_options
Mike Sherov [Mon, 11 Aug 2014 00:46:27 +0000 (20:46 -0400)]
Droppable Tests: fix whitespace in droppable_options

10 years agoDroppable tests: swap $.ui.intersect test with tolerance test
Mike Sherov [Mon, 11 Aug 2014 00:40:55 +0000 (20:40 -0400)]
Droppable tests: swap $.ui.intersect test with tolerance test

$.ui.intersect is not a documented API, yet droppable tolerance is,
and are essentially the same.

10 years agoAutocomplete: Use `$.trim` instead of `jQuery.trim` for consistency
TJ VanToll [Fri, 8 Aug 2014 12:47:25 +0000 (08:47 -0400)]
Autocomplete: Use `$.trim` instead of `jQuery.trim` for consistency

Fixes #10525

10 years agoBuild: Update DB version for release script
Rafael Xavier de Souza [Thu, 7 Aug 2014 14:48:39 +0000 (11:48 -0300)]
Build: Update DB version for release script

10 years agoDraggable Tests: Fix inconsistent operator spacing.
Mike Sherov [Wed, 6 Aug 2014 23:43:13 +0000 (19:43 -0400)]
Draggable Tests: Fix inconsistent operator spacing.

10 years agoDraggable: Fix several whitespace issues
Mike Sherov [Wed, 6 Aug 2014 21:51:43 +0000 (17:51 -0400)]
Draggable: Fix several whitespace issues

10 years agoTooltip: Treat the tooltip as closing until it's fully removed
Scott González [Tue, 5 Aug 2014 18:19:06 +0000 (14:19 -0400)]
Tooltip: Treat the tooltip as closing until it's fully removed

This ensures that we don't trigger the close event twice if the tooltip is
destroyed during the hide animation.

Closes gh-1306

10 years agoAuthors: Update
Scott González [Wed, 6 Aug 2014 12:22:10 +0000 (08:22 -0400)]
Authors: Update

10 years agoTests: Fix TestSwarm submissions for old jQuery
Scott González [Wed, 6 Aug 2014 11:44:55 +0000 (07:44 -0400)]
Tests: Fix TestSwarm submissions for old jQuery

10 years agoResizable: account for padding & border in grids.
Mike Sherov [Tue, 5 Aug 2014 17:58:11 +0000 (13:58 -0400)]
Resizable: account for padding & border in grids.

Fixes #10437

10 years agoResizable: Fix containment width with relative parent.
Jyoti Deka [Mon, 4 Aug 2014 11:29:11 +0000 (07:29 -0400)]
Resizable: Fix containment width with relative parent.

Refs #10140
Closes gh-1303

10 years agoResizable: Fix containment calculation with relative parent 1304/head
Mike Sherov [Mon, 4 Aug 2014 12:18:35 +0000 (08:18 -0400)]
Resizable: Fix containment calculation with relative parent

Remove an incorrect fix introduced in 47cd5b6f that causes
width calculations to be incorrect once the correct fix
was introduced in c03cb807

Fixes #10140

10 years agoTests: Whitespace
Scott González [Fri, 1 Aug 2014 17:30:45 +0000 (13:30 -0400)]
Tests: Whitespace

10 years agoTests: Fix composite tests
Scott González [Fri, 1 Aug 2014 16:25:14 +0000 (12:25 -0400)]
Tests: Fix composite tests

10 years agoCore: Ensure forms in tests have some actual content
Scott González [Wed, 30 Jul 2014 14:16:29 +0000 (10:16 -0400)]
Core: Ensure forms in tests have some actual content

Empty forms have no height, so they're considered hidden in jquery-git as of
jquery/jquery@10399ddcf8a239acc27bdec9231b996b178224d3

10 years agoCore: Fix focusable detection for image maps
Scott González [Wed, 30 Jul 2014 14:03:53 +0000 (10:03 -0400)]
Core: Fix focusable detection for image maps

The attribute selector requires quotes to be valid, but only new (unreleased)
Sizzle has this requirement.

10 years agoCore: Clean up selector tests
Scott González [Wed, 30 Jul 2014 13:45:00 +0000 (09:45 -0400)]
Core: Clean up selector tests

10 years agoSelectmenu: Remove unused var in test
Scott González [Tue, 29 Jul 2014 19:18:46 +0000 (15:18 -0400)]
Selectmenu: Remove unused var in test

10 years agoSelectmenu: Don't check menu width in width option tests
Scott González [Tue, 29 Jul 2014 19:02:36 +0000 (15:02 -0400)]
Selectmenu: Don't check menu width in width option tests

10 years agoSelectmenu: Preserve text selection when interacting with the widget
Scott González [Tue, 29 Jul 2014 13:48:04 +0000 (09:48 -0400)]
Selectmenu: Preserve text selection when interacting with the widget

Fixes #10144
Closes gh-1295

10 years agoSelectmenu: Properly set width for button
Scott González [Tue, 29 Jul 2014 14:40:02 +0000 (10:40 -0400)]
Selectmenu: Properly set width for button

Fixes #10145
Closes gh-1296