Last modified: 2014-10-13 20:55:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T73178, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71178 - OOjs UI: ComboBoxWidget cut off near bottom of window
OOjs UI: ComboBoxWidget cut off near bottom of window
Status: RESOLVED FIXED
Product: OOjs UI
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: High minor
: ---
Assigned To: Alex Monk
:
: 71374 71470 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-23 16:02 UTC by Ritu Swain
Modified: 2014-10-13 20:55 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
screenshot showing "Use this Group" menu items appearing as cut-off (83.88 KB, image/png)
2014-09-23 16:02 UTC, Ritu Swain
Details

Description Ritu Swain 2014-09-23 16:02:31 UTC
Created attachment 16554 [details]
screenshot showing "Use this Group" menu items appearing as cut-off

Environment-test2, beta

1> In VE, select Cite -> Basic.
2>In the Reference dialog, click on the "Use this Group" pull-down menu .Notice the menu items appear cut-off and are not visible properly.Please see the screenshot at this step.
Comment 1 James Forrester 2014-09-25 02:01:33 UTC
See MWLinkTargetInputWidget does this – the menu needs to use a different overlay. Roan claims this is relatively easy. :-)
Comment 2 Roan Kattouw 2014-09-25 02:08:32 UTC
(In reply to James Forrester from comment #1)
> See MWLinkTargetInputWidget does this – the menu needs to use a different
> overlay. Roan claims this is relatively easy. :-)

That code actually has more indirection than I thought.

All you need to do is pass the $overlay config option to the widget (anything that mixes in LookupInputWidget will work) and set it to the surface's localOverlay.

This is what the link inspector does too, but indirectly. DesktopContext#createInspectorWindowManager sets an overlay on the window manager, and LinkInspector then grabs the manager's overlay and passes it into the LinkTargetInputWidget subclass as $overlay.
Comment 3 Gerrit Notification Bot 2014-09-26 23:01:01 UTC
Change 163299 had a related patch set uploaded by Alex Monk:
Don't cut off "Use this group" dropdown menu in reference dialogs

https://gerrit.wikimedia.org/r/163299
Comment 4 Gerrit Notification Bot 2014-09-26 23:01:52 UTC
Change 163300 had a related patch set uploaded by Alex Monk:
ComboBoxWidget: Append menu to $overlay option

https://gerrit.wikimedia.org/r/163300
Comment 5 Gerrit Notification Bot 2014-09-26 23:02:04 UTC
Change 163301 had a related patch set uploaded by Alex Monk:
DesktopSurface#createDialogWindowManage: Send overlay object to WindowManager

https://gerrit.wikimedia.org/r/163301
Comment 6 Rummana Yasmeen 2014-09-26 23:07:59 UTC
*** Bug 71374 has been marked as a duplicate of this bug. ***
Comment 7 James Forrester 2014-09-30 15:46:05 UTC
*** Bug 71470 has been marked as a duplicate of this bug. ***
Comment 8 Gerrit Notification Bot 2014-10-02 16:18:49 UTC
Change 164361 had a related patch set uploaded by Alex Monk:
Move window overlay up to be a sibling of the frame

https://gerrit.wikimedia.org/r/164361
Comment 9 Gerrit Notification Bot 2014-10-02 16:20:35 UTC
Change 163301 abandoned by Alex Monk:
DesktopSurface#createDialogWindowManage: Send overlay object to WindowManager

Reason:
Abandoning in favour of I7e0294bb instead

https://gerrit.wikimedia.org/r/163301
Comment 10 Gerrit Notification Bot 2014-10-02 16:21:00 UTC
Change 163299 abandoned by Alex Monk:
Don't cut off "Use this group" dropdown menu in reference dialogs

Reason:
Done in I7e0294bb, abandoning this one

https://gerrit.wikimedia.org/r/163299
Comment 11 Gerrit Notification Bot 2014-10-06 12:10:20 UTC
Change 164361 merged by jenkins-bot:
Move window overlay up to be a sibling of the frame

https://gerrit.wikimedia.org/r/164361
Comment 12 Gerrit Notification Bot 2014-10-06 12:10:24 UTC
Change 163300 merged by jenkins-bot:
ComboBoxWidget: Append menu to $overlay option

https://gerrit.wikimedia.org/r/163300
Comment 13 Alex Monk 2014-10-06 15:58:08 UTC
Should be fixed.
Comment 14 Ritu Swain 2014-10-06 16:40:04 UTC
I can still reproduce it on both beta and test2.
Comment 15 Alex Monk 2014-10-06 17:33:50 UTC
What about now? beta won't show OOjs UI fixes until it actually has the latest copy of OOjs UI.
Comment 16 Ritu Swain 2014-10-06 17:49:25 UTC
(In reply to Alex Monk from comment #15)
> What about now? beta won't show OOjs UI fixes until it actually has the
> latest copy of OOjs UI.

I checked with a clear cache in test2 and still the  list item is displayed truncated.
Comment 17 Alex Monk 2014-10-06 19:26:26 UTC
It's working for me on deployment-prep. test2 won't be updated until Thursday.
Comment 18 Ritu Swain 2014-10-10 17:10:25 UTC
hi Alex, when i click on the combo box arrow it just puts the cursor in it.Earlier doing the same action, used to show the "General References" in a drop-down list with a check beside it.
Comment 19 Ritu Swain 2014-10-10 17:10:48 UTC
(In reply to Ritu Swain from comment #18)
> hi Alex, when i click on the combo box arrow it just puts the cursor in
> it.Earlier doing the same action, used to show the "General References" in a
> drop-down list with a check beside it.

Both in beta and test2.
Comment 20 Alex Monk 2014-10-10 20:33:14 UTC
I don't see how that's related to this bug.
Comment 21 Ritu Swain 2014-10-11 05:27:54 UTC
The original issue was to fix the menu item(i,e. General References) which was appearing cut-off and was not visible properly. The issue is not fixed because now  when i click on the combo box arrow it does not show the drop-down.Instead just places the cursor inside the combo box.However, when you start typing, the list showing General References as a item does appear.

If this sounds confusing, please follow the steps below-:

1> select Cite -> Basic.

2>In the Reference dialog, click on the arrow in "Use this Group" combo box.Notice doing so above step just brings the box into focus.

3>Now while the cursor is still in the box type in. When the first character is entered you see the drop-down list with "General References" as an option.

Expected- The drop-down list with General References, should show up when i click on the combo-box arrow.
Comment 22 Alex Monk 2014-10-13 20:30:16 UTC
So what you mean is, this issue is fixed but the fix caused a different issue, which is the indicator button not working properly.
Comment 23 Alex Monk 2014-10-13 20:55:25 UTC
The fix for this bug changed ComboBoxWidget from using MenuWidget to using TextInputMenuWidget. However, TextInputMenuWidget#toggle seems to have not been handling undefined values properly. I've uploaded Gerrit change #166512 to fix this.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links