1 Jul 2008 11:57
Re: WDialog positioning problems
Hallo!
Koen Deforche пишет:
> The problem is that it impossible
> to center the dialog (vertically) in CSS only without knowing the
> size.
Vertical centering is exactly what is *not* needed in my case at least.
I am concerned
about horizontal centering.
> You should be able to override all the internal CSS code, by
> overriding the selectors from your own CSS files:
>
> - use WApplication::useStyleSheet() to load your own CSS file
> - for WDialog, it is not documented, but you will want to add
> declarations like :
>
> div.Wt-dialogwindow {
> margin-left: -XXXpx;
> margin-top:-YYpx;
> }
>
Yes I found all that in source code, but if I put these declarations in
my css file,
they seem to be ignored. First I was using a hacked on version of
library with
css code in WDialog commented out, then I added a following line at the
start
of my program:
styleSheet().addRule("dummy", "background: white;", "Wt::WDialog");
(Continue reading)
It is not accessible by mouse, but if one goes to
browser's ulr input
window and then proceeds to move focus using TAB, then he *can* access
controls from
underlying window. Now WDialog is described as modal in docs and (at
least in my case)
access to the underlying page can screw up application badly.
Is there any way to disable it?
Best regards,
RSS Feed