Last modified: 2014-06-17 17:02:58 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 T33212, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31212 - [Regression] "View history" should move in and out of the p-cactions menu depending on window (re)size
[Regression] "View history" should move in and out of the p-cactions menu dep...
Status: RESOLVED FIXED
Product: MediaWiki skins
Classification: Unclassified
Vector (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-28 15:25 UTC by Derk-Jan Hartman
Modified: 2014-06-17 17:02 UTC (History)
6 users (show)

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


Attachments
screenshot of insuffecient horizontal space, yet history tab not being moved into tab. (15.51 KB, image/png)
2011-09-28 15:25 UTC, Derk-Jan Hartman
Details
Proposed patch (619 bytes, patch)
2011-10-11 07:18 UTC, Michael M.
Details

Description Derk-Jan Hartman 2011-09-28 15:25:26 UTC
Created attachment 9109 [details]
screenshot of insuffecient horizontal space, yet history tab not being moved into tab.

Showed as anonymous user (non-secure) on Safari 4. Works as logged in user (secure).

Worked in both cases on 1.17
Comment 1 Brion Vibber 2011-09-28 17:29:56 UTC
Sample URL?
Comment 2 Derk-Jan Hartman 2011-09-28 21:26:26 UTC
http://nl.wikipedia.org/
Comment 3 Derk-Jan Hartman 2011-09-28 21:33:58 UTC
Was reported by other Dutch wiki users btw. and confirmed and filed by me.

When starting the screen with a small window and then opening the page does make it animate to the drop down btw. Subsequently widening the window however does then leave the history element stuck in the drop down, so it is specifically the resize event that should recalculate and repositioning that isn't working, the initial calculation is working.
Comment 4 Michael M. 2011-10-11 07:18:00 UTC
Created attachment 9213 [details]
Proposed patch

Don't ask me why, but inserting an undefined fixes the issue.
Comment 5 Mark A. Hershberger 2011-10-28 14:41:58 UTC
removing dep on tarball blockers for things that aren't in mw core.
Comment 6 Derk-Jan Hartman 2011-11-30 08:37:16 UTC
Well duh !!!

delayedBind: function( timeout, event, data, callback ) 

So I guess michael's patch should do the trick, though it's probably better to have 'null' there instead.
Comment 7 Roan Kattouw 2011-11-30 13:16:31 UTC
Patch committed in r104671.
Comment 8 Brion Vibber 2011-12-01 22:58:28 UTC
	/**
	 * Bind a callback to an event in a delayed fashion.
	 * In detail, this means that the callback will be called a certain
	 * time after the event fires, but the timer is reset every time
	 * the event fires.
	 * @param timeout Number of milliseconds to wait
	 * @param event Name of the event (string)
--->	 * @param data Data to pass to the event handler (optional) <--
	 * @param callback Function to call
	 */
	delayedBind: function( timeout, event, data, callback ) {

The parameter's explicitly listed as optional. Is something broken in the function that's making the optionalness not work? (For instance... it doesn't appear to actually be optional in the code.)
Comment 9 Brion Vibber 2011-12-02 21:50:25 UTC
I've made further changes in r105007 to undo r104671 and fix jquery.delayedBind() to work correctly with jQuery 1.6.x.

Patch probably needs merging to 1.18 and 1.18wmf1; tagged the rev.

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


Navigation
Links