acbarbosa1964 / thtmlviewer

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

Div-tag with negative margins in a td-tab is clipped #320

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Which steps will reproduce the problem?
1. Load the attached test.html file into a THtmlViewer

What is the expected output?
All letters are visible like in Chrome, Firefox, IE.

What do you see instead?
The letters are clipped at the cell's bounds.

Which version of the product are you using? Which compiler version are you
using? On which operating system?
Delphi 2009, Windows 7

Please attach test html files and screenshots, if appropriate.
Please provide any additional information:
The problem is that the cell selects a clip region into the device context and 
the div tab (TBlock) wants to paint outside of the cell due to the negative 
margins.
The patch "opens" the regions for the div-tag if there are any negative margin 
values.

Original issue reported on code.google.com by Andreas....@gmail.com on 27 Nov 2013 at 8:29

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for spotting and fixing this issue.

Revision r448 applies the patch.

Original comment by OrphanCat on 26 Jan 2014 at 12:25