Re: HTML window width--always just too small!



On 2001.10.13 15:19 Peter Bloomfield wrote:
> Every time an HTML part is displayed in my setup, it's always rendered 
> for a window that's a fraction wider than the one it appears in, so it 
> has a horizontal scroll bar at the bottom. If I resize the window and 
> rerender, it adjusts to the new size, but still seems to overestimate 
> the window width.  Does anyone else see this, and can anyone help me fix 
> my setup to avoid it?

The problem is more complicated and seen by everybody, I believe.

The problem is, the "size_request" signal _seems_ to have different 
semantics for gtkhtml widget (different than for example gtktext). I tried 
to trace calls to  balsa_gtk_html_size_request() but I have impression it 
is necessary to have a look at gtkhtml handling of this signal as well.

One can  remove following line from balsa_gtk_html_size_request()

requisition->width += GTK_LAYOUT(widget)->hadjustment->upper;

to make the gtkhtml widget adjust to the preview size more often - but 
when it contains elements of size bigger than the preview window, the 
scrollbar will not be shown.

Sections of GGAD are very helpful in general but I could not resolve this 
problem after the reading anyway.
http://developer.gnome.org/doc/GGAD/sec-containers.html#SEC-SIZENEGOTIATION
http://developer.gnome.org/doc/GGAD/z147.html#SEC-GTKEVSIZENEG

/Pawel




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