[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Konqueror problems
From:       Rik Hemsley <rik () kde ! org>
Date:       2000-09-29 14:48:38
[Download RAW message or body]

#if Dirk Mueller
> On Fre, 29 Sep 2000, Reginald Stadlbauer wrote:
> > - When you load a webpage which has a form (e.g. a multilineedit), you
> > start typing before loading finished, the cursor jumps to the beginning
> > of the multilineedit when loading the page finished. That is really
> > annoying.
>
> Hmm, good question. I can't think of any reason, except you hit the
> hide()/show() hack (i.e. the curser gets reset on hideEvent/showEvent).
>
> Its part of the problem how to hide widget elements in khtml as long as
> they're not yet layouted.. I'm currently trying to find a fix for it.
>
> > Besides that, why do we use fixed fonts instead of the default
> > (normally proportional) font in webforms? Looks ugly in comparison to
> > proportional ones IMO.
>
> change your default style sheet ;)
>
> the reason is that HTML4 defines the width of those lineedits in webpages
> relative to the character width, i.e. <input type=text size=20> will
> create a lineedit that has room for 20 characters. you cannot really do
> that with proportional fonts, as it would mess up the layout of some
> pages relying on the width of the form element..
>
> well, it could be changed anyway. I've no real opinion about it. any
> comments?


How about:
lineedit->setFixedWidth(lineedit->fontMetrics().maxWidth() * size)

Rik

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic