Page MenuHomePhabricator

UrlShortener URL input field truncates text
Closed, ResolvedPublic

Description

See below. The input box does contains the full URL (https://en.wikipedia.org/wiki/Main_Page), but I need to scroll horizontally to see it, even though the input box is wide enough.

Screen Shot 2015-08-10 at 10.29.20.png (552×1 px, 90 KB)

Event Timeline

ori raised the priority of this task from to Medium.
ori updated the task description. (Show Details)
ori added subscribers: Ricordisamoa, tstarling, Prtksxna and 24 others.

Possible clue: the width of the visible text is the complement of the width of the right-aligned error text that is displayed when the input field is empty.

Screen Shot 2015-08-10 at 10.33.28.png (732×1 px, 106 KB)

I think it's a bug in OO.ui.TextInputWidget.prototype.positionLabel.

Change 230915 had a related patch set uploaded (by Bartosz Dziewoński):
TextInputWidget: Don't forget to positionLabel() after it's been unset

https://gerrit.wikimedia.org/r/230915

Change 230915 merged by jenkins-bot:
TextInputWidget: Don't forget to positionLabel() after it's been unset

https://gerrit.wikimedia.org/r/230915

Fixed after OOUI update (v0.12.3) in MediaWiki core today.