Re: HTML window width--always just too small!
- From: hitched97 <hitched97 myrealbox com>
- To: Balsa List <balsa-list gnome org>
- Subject: Re: HTML window width--always just too small!
- Date: Tue, 16 Oct 2001 17:40:56 -0400
On Sat, 13 Oct 2001 16:54:54, Pawel Salek wrote:
> 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.
Yes, I see it as well. Quite annoying. I've noticed, though, that the
larger I make my balsa window, the less wrong the size of the GtkHTML
widget is.
> 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.
I did a really bad hack - I scale the size of the widget down by 10%.
I added this to the end of balsa_gtk_html_size_request():
requisition->width = (requisition->width*90)/100;
This seems to stop the oversized html widget.
And no, I'm not suggesting releasing balsa with this in it.
Just for anyone as annoyed as me by the mis-sized widget.
--
Steve Wall
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]