Patiencer / thtmlviewer

Automatically exported from code.google.com/p/thtmlviewer
0 stars 0 forks source link

DIV tag fixed height / max-height not working #369

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi All,

Using the following code:

<html>
<body>
   <div style="border: 1px solid black; height:20px; overflow:hidden">Test<br/>Line 2<br/>Line 3<br/></div>
</body>
</html>

When viewed on HTML view the DIV expands in height to show all of the content. 
When displayed in Firefox the box stays at 20px heigh and only shows the word 
test.

I've been stepping through the code and I can see the style is being read in 
correct when the TBlock object is created. By the time the TBlock.DrawLogic is 
called the HideOverflow call returns false. 

Any help on fixing the issue would be gratefully received.

Many thanks
Ryan

Original issue reported on code.google.com by rcdr...@googlemail.com on 7 Aug 2014 at 2:52

GoogleCodeExporter commented 8 years ago
r484 fixes the HideOverflow related issue.

The max-height issue is related to ApplyBoxSettings() and needs further 
invesigation.

Original comment by OrphanCat on 14 Oct 2014 at 12:49