Last modified: 2013-09-25 09:51:40 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 T50817, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48817 - CSS resize horizontal in the unit translation dialog is useless because this makes the textarea overflow the hints and triggers a FF bug; vertical isn't and doesn't
CSS resize horizontal in the unit translation dialog is useless because this ...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Rainer Rillke @commons.wikimedia
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-25 19:02 UTC by Rainer Rillke @commons.wikimedia
Modified: 2013-09-25 09:51 UTC (History)
6 users (show)

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


Attachments
resizer showing up wrongly orientated (14.91 KB, image/png)
2013-05-25 19:02 UTC, Rainer Rillke @commons.wikimedia
Details
useless horizontal resize (50.44 KB, image/png)
2013-07-27 14:31 UTC, Rainer Rillke @commons.wikimedia
Details
even worse: You can not resize vertically and autosize does not work! (22.01 KB, image/png)
2013-07-27 14:38 UTC, Rainer Rillke @commons.wikimedia
Details

Description Rainer Rillke @commons.wikimedia 2013-05-25 19:02:39 UTC
Created attachment 12396 [details]
resizer showing up wrongly orientated

Original title:
The resizer image in the unit translation dialog must be mirrored when translating to RTL languages

And, if your user language is a LTR language, the box is expanded towards the wrong direction (not where the resize graphic is shown).
Comment 1 Niklas Laxström 2013-05-26 11:42:51 UTC
That is feature of your browser. Please provide your browser name, version, language of your interface and language you are translating to.
Comment 2 Rainer Rillke @commons.wikimedia 2013-05-26 18:01:28 UTC
As **always** (and I included this many times, even in my bugzilla user name but someone removed it): 
Unless otherwise noted, I am using:

* The latest Firefox release (21.0)
* Language in the prefs: de
* Language translating to: fa (which is visible in the screenshot)

I did some testing and found that if the CSS resize-property is set to *vertical* it shows correctly. And I am nearly sure that you wanted to set it to  *vertical* and not to *horizontal* because this is quite useless.

Here is the translate link:
https://commons.wikimedia.org/w/index.php?title=Special:Translate&group=page-Template%3AWatchlistNotice%2FTranslation&filter=&action=translate&language=fa
Comment 3 Rainer Rillke @commons.wikimedia 2013-06-27 18:58:03 UTC
Note that I can not resize the text boxes vertically (only horizontally) when selecting "outdated" translations. This is highly annoying.
Comment 4 Rainer Rillke @commons.wikimedia 2013-07-27 14:31:05 UTC
Created attachment 12986 [details]
useless horizontal resize

this is related to https://github.com/wikimedia/mediawiki-extensions-Translate/blob/master/resources/js/jquery.autosize.js
Comment 5 Rainer Rillke @commons.wikimedia 2013-07-27 14:38:06 UTC
Created attachment 12987 [details]
even worse: You can not resize vertically and autosize does not work!

In the outdated-view, you autosize does not work and you cannot resize the text box in a useful manner.
Comment 6 Gerrit Notification Bot 2013-07-27 17:44:23 UTC
Change 76298 had a related patch set uploaded by Rillke:
Make jquery.autosize aware of style changes

https://gerrit.wikimedia.org/r/76298
Comment 7 Gerrit Notification Bot 2013-07-29 10:55:16 UTC
Change 76482 had a related patch set uploaded by Rillke:
Make jquery.autosize aware of style changes

https://gerrit.wikimedia.org/r/76482
Comment 8 Siebrand Mazeland 2013-08-01 16:53:20 UTC
I've tested this patch on translatewiki.net production with Firefox 22.0 on OSX 10.8.4 with URL at https://translatewiki.net/wiki/Special:Translate/ext-universallanguageselector?filter=&action=translate&uselang=he&debug=true. In Chrome I (still) see expected behavior, and it looks to me like I see little change in Firefox.

1. The resize icon still appears in the same place and with the same orientation as in attachment 12396 [details]. If that is what Gerrit change #76482 aimed to resolve, it doesn't do that, right?

2. Attachment 12986 [details] mentioned "useless horizontal resize". I'm note sure what that means (horizontal resize should not be possible?). I still see the behavior mentioned in that attachment. Is that what is expected?

3. Attachment 12987 [details] appears to express a feature request ("Make it possible to increase height of translation editor arbitrarily" - instead of based on the number of lines in the editor, with a maximum). Is that correct? If so, I'd like to propose we keep that out of scope of this issue, and a new issue is reported for that.
Comment 9 Gerrit Notification Bot 2013-08-02 00:08:31 UTC
Change 76298 abandoned by Rillke:
Make jquery.autosize aware of style changes

Reason:
Follow on 6b08237d431fb78db22c174c25c91eb6e3468422

https://gerrit.wikimedia.org/r/76298
Comment 10 Rainer Rillke @commons.wikimedia 2013-08-02 00:15:33 UTC
(In reply to comment #8)
> 1. ... If that is what Gerrit change #76482 aimed to resolve
No, this not yet. I will report this upstream.

> 2. horizontal resize should not be possible
Yes, perhaps, or better we do not interfere with the defaults at all. Users should be free to choose and customize their browsers according to their wishes.

> 3. appears to express a feature request
No. It is a bug. Somewhere in the code, one texarea is initially created and .autosize() is called on it. If that textarea is then shown it is too small:
"In the screenshot provided as attachment #3 [details] in bug 48817, the font size
is 16px in the visible textarea and 13px in the mirror due to this
issue."
To reproduce, you need a page that has only one outdated translation and FF 22.
Comment 11 Rainer Rillke @commons.wikimedia 2013-08-02 00:18:13 UTC
3. Will be solved by the patch. Everything else would need discussion.

Perhaps issue 3 should be a separate bug. But since it was all about resizing and being unable to, I've put it in here.
Comment 12 Gerrit Notification Bot 2013-08-02 10:24:47 UTC
Change 76482 merged by jenkins-bot:
Update jquery.autosize

https://gerrit.wikimedia.org/r/76482
Comment 13 Andre Klapper 2013-09-25 09:51:40 UTC
Patch for 3) got merged, hence resetting status as per comment 11

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


Navigation
Links