Last modified: 2011-09-12 23:37:45 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 T32807, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30807 - UploadWizard big "upload a file" button half-clickable in some browsers
UploadWizard big "upload a file" button half-clickable in some browsers
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
unspecified
All All
: Highest major (vote)
: ---
Assigned To: Ryan Kaldari
:
: 26186 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-07 20:18 UTC by Neil Kandalgaonkar
Modified: 2011-09-12 23:37 UTC (History)
3 users (show)

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


Attachments

Description Neil Kandalgaonkar 2011-09-07 20:18:49 UTC
Following some recent CSS changes the big button for uploadwizard is suddenly only clickable over half its area. This works fine locally, on test.wikipedia.org, but not on live Commons.

(The feature is implemented by placing an invisible file upload field over a button. the function that does this is called moveFileInputToCover)
Comment 1 Neil Kandalgaonkar 2011-09-07 20:19:35 UTC
Assigning to Kaldari since this seems to follow CSS changes he did a few weeks ago
Comment 2 Ryan Kaldari 2011-09-08 21:01:21 UTC
Just a quick note for myself:

We need to change the height of input.mwe-upwiz-file-input to match the height of the containing div.mwe-upwiz-file-ctrl-container. If I remember correctly, this is supposed to be done dynamically somewhere in the code. Probably need to make sure that it is matching all of the relevant box elements: height, padding, and margin, rather than just one or two.
Comment 3 Neil Kandalgaonkar 2011-09-08 23:48:42 UTC
(In reply to comment #2)
> Just a quick note for myself:
> 
> We need to change the height of input.mwe-upwiz-file-input to match the height
> of the containing div.mwe-upwiz-file-ctrl-container. If I remember correctly,
> this is supposed to be done dynamically somewhere in the code. Probably need to
> make sure that it is matching all of the relevant box elements: height,
> padding, and margin, rather than just one or two.

Is it possible that this is related to central notice shifting the page downwards?
Comment 4 Ryan Kaldari 2011-09-08 23:54:14 UTC
No, the problem occurs regardless of CentralNotice.
Comment 5 Ryan Kaldari 2011-09-09 00:05:00 UTC
Relevant code is in moveFileInputToCover() function in mw.UploadWizardUploadInterface.js. I'll try to take a look at it this weekend.
Comment 6 Ryan Kaldari 2011-09-09 00:11:28 UTC
Well, as long as I was in there, I noticed that changing line 422 from:
$div.find( '.mwe-upwiz-visible-file-filename-text' )

to:
$div.find( '.mwe-upwiz-file-ctrl-container' )

seems to solve the problem. Needs testing in IE, Opera, etc.
Comment 7 Neil Kandalgaonkar 2011-09-09 00:53:53 UTC
I'm pretty sure that this is how it was originally, then some other CSS change occurred, so I changed it to that.
Comment 8 Ryan Kaldari 2011-09-09 01:26:37 UTC
Actually I think the fix above probably won't work if files are deleted. I
think the safest fix is just removing line 64 from uploadWizard.css. This
removes the padding override for "mwe-upwiz-add-files-0 #mwe-upwiz-add-file". I
thought I had removed all the explicit button padding from uploadWizard.css
after I made my jQuery UI skin changes (since padding is now handled more
elegantly by the skin), but I missed this one (since the CSS selector wasn't
obviously a button).

I've implemented this fix in r96638. A side effect is that the button is no
longer so huge.
Comment 9 Neil Kandalgaonkar 2011-09-12 17:39:39 UTC
*** Bug 26186 has been marked as a duplicate of this bug. ***

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


Navigation
Links