lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] wxHTML table header alignment


From: Vaclav Slavik
Subject: Re: [lmi] wxHTML table header alignment
Date: Tue, 10 Mar 2009 20:59:45 +0100

On Mon, 2009-03-09 at 19:40 +0000, Greg Chicares wrote:
> I haven't built the wx samples, so let me just attach a file that
> does show this symptom. I made the html file by intercepting the
> string that would be passed to wxHtmlWindow::SetPage() and writing
> it to an ofstream (in binary mode), so it ought to reproduce the
> symptom if you load it in the sample app. The attachment also
> includes a corresponding PNG screenshot.

I see. I though you were talking about this bug:

        With a default-width html window, the seventh and eighth columns
        are not bottom aligned. If I narrow the html window until it
        requires a scrollbar, then only the second, third, fifth, and
        ninth columns are bottom aligned

That's why I didn't realize you were talking about something else and
didn't notice this (it's nicely visible in your screenshot, but less so
under wxGTK or Wine):
        
        In the columns that aren't bottom aligned, there's an extra
        space at the end of each "row" except the last, which I've
        indicated with '.' above. That extra space isn't a big problem;
        I mention it in case it helps to explain why those headers
        aren't bottom aligned. [1]
        
That's hard to avoid, because the space after a word is part of the word
for layout purposes; wxHTML works with "EE ", "Gross " and "Payment"
fragments ("cells" in wxHTML terminology), not with space-separated
"EE", "Gross" and "Payment". This can (hopefully) be changed (and this
defect fixed), but it won't be easy [2].

Regards,
Vaclav

[1] The whitespace at line ends is present in all multi-line columns,
    not just those incorrectly vertically aligned; this was the case
    before r56589 (r56590 in 2.8) too.

[2] I can't offer a meaningful estimate -- I don't even know how to do
    it yet, let me know if I should spend some time thinking about the
    necessary changes.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]