MantisBT - NetSurf
View Issue Details
0002097NetSurfLayoutpublic2014-03-20 07:382015-03-10 11:01
ReporterAchal 
Assigned ToMichael Drake 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformLinuxOSUbuntuOS Version13.10
Product Version3.1 
Target VersionFixed in Version3.1 
Fixed in CI build #1772
Reported in CI build #
URL of problem page
Summary0002097: Text input field has misplaced text if its height is set in css
DescriptionMake a text input field with height 100px
You will found that caret is at its correct position but text is way down below it.

Attaching a screen shot and a test file.
TagsNo tags attached.
Attached Fileshtml exampleHTML.html (204) 2014-03-20 07:38
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=105&type=bug
png Screenshot from 2014-03-20 13:04:49.png (18,569) 2014-03-20 07:38
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=106&type=bug
png

Notes
(0000286)
Achal   
2014-03-20 09:55   
I think "text_y_offset_baseline" should also depend upon line_height either directly or through "text_y_offset".

Noticed one more thing, caret size doesn't match with font size, if font-size is changed, for instance 50;
(0000288)
Achal   
2014-03-20 21:36   
checkout diff at https://github.com/Achal-Aggarwal/netsurf/compare/fix-text-input which might solve this issue.
(0000292)
Michael Drake   
2014-03-27 22:14   
The text_y_offset_baseline bug has been fixed. Thanks for tracking that down.
(0000691)
Vincent Sanders   
2015-03-10 11:01   
Confirmed fixed in 3.1 release

Issue History
2014-03-20 07:38AchalNew Issue
2014-03-20 07:38AchalFile Added: exampleHTML.html
2014-03-20 07:38AchalFile Added: Screenshot from 2014-03-20 13:04:49.png
2014-03-20 09:55AchalNote Added: 0000286
2014-03-20 10:37Vincent SandersAssigned To => Michael Drake
2014-03-20 10:37Vincent SandersStatusnew => confirmed
2014-03-20 10:37Vincent SandersProduct Version => 3.1
2014-03-20 21:36AchalNote Added: 0000288
2014-03-27 22:14Michael DrakeFixed in CI build # => 1772
2014-03-27 22:14Michael DrakeNote Added: 0000292
2014-03-27 22:14Michael DrakeStatusconfirmed => resolved
2014-03-27 22:14Michael DrakeResolutionopen => fixed
2014-03-27 22:14Michael DrakeFixed in Version => 3.1
2015-03-10 11:01Vincent SandersNote Added: 0000691
2015-03-10 11:01Vincent SandersStatusresolved => closed