Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 467727

Summary: [Text] Some characters are cut off at the bottom in Firefox 38
Product: [RT] RAP Reporter: Tim Buschtoens <tbuschto>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: tbuschto
Version: 3.0   
Target Milestone: 3.0 RC2   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Firefox 36 vs 38 none

Description Tim Buschtoens CLA 2015-05-20 11:22:51 EDT
Created attachment 253601 [details]
Firefox 36 vs 38

See screenshot for comparison. 

As of Firefox 38, the internal (about:config) property "layout.css.devPixelsPerPx" is set to -1 by default, meaning the value depends on the OS. That is good for high density displays, but bad for us, since the "100%" zoom no longer represents a 1:1 mapping for device pixels to css pixel. The resulting rounding error cut of the bottom of the letter "g" and some other. 

Removing the line-height property from the input element fixes the issue, but the text is then no longer centered.
Comment 1 Tim Buschtoens CLA 2015-05-27 06:08:58 EDT
Fixed by commit 2577127bc30a9f0f79863a9518f186778cae672a.
Do not set the lineHeight CSS property of input elements

The input element is still centered to due the previous commit c7f85e14224d0fe6497984e330dc0b605a665cf2. However, the getLineHeight method on the Text Java class is now guessing the actual height.