Question
I have (with some help) got the
NatSkin set up OK on
my TWiki site.
However it seems to size its window incorrectly, it's as if it sizes its window on the assumption that I'm running my browser (Firefox on Linux) in full screen mode. As it is I
always get scrollbars even on a TWiki window with only a few words of text. If I change Firefox to full screen it's just big enough for the scrollbars to disappear.
Is there a setting which affects this or is
NatSkin setting its size according to my scree resolution somehow?
Environment
--
ChrisGreen - 09 Aug 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Yes. See the file
pub/TWiki/NatSkin/BaseStyle.css. There is a
.natSideBarContents, .natMainContents {
min-height:50em;
...
}
That forces the scrollbar to always appear. This is done by purpose
to prevent the layout to breath depending on the amount of text in
the topic and switching on and off the sidebar. Note, however, that
this does only work on Non-Internet-Explorer browsers.
--
MichaelDaum - 09 Aug 2006
That accounts for the vertical scrollbar but I always get the horizontal one too. I think there's something a bit odd with the layout in the header. The "Edit | Attach | Move | Raw | Diffs | More" is too far to the right and the "! More" is off the side of the coloured part of the header. If the "| More" wasn't there I don't think I'd get a horizontal scrollbar, though if I have the search box in the header that sticks out the same amount.
BTW I have upgraded to version 4.0.4 now which seems to have cleared up a few little quirks. Maybe I can put back that bit of code I deleted to fix the other problem.
--
ChrisGreen - 10 Aug 2006
This is most probably due the font settings in your browser. Have a look at the "minimum font size" setting and lower the boundary there.
Best is to remove this restriction at all by setting it to the lowest value that is possible.
--
MichaelDaum - 10 Aug 2006
No, that's not it, I've set the minimum font size to 'none' and it's made no difference at all. I see this symptom on more than one system, i.e.:-
Firefox 1.5 on Solaris, on a 1024x768 screen
Firefox 1.5 on Linux, on a 1600x1200 screen
Sadly Internet Explorer on WIndows on a 1600x1200 screen works perfectly, it shows neither a vertical nor a horizontal scrollbar.
--
ChrisGreen - 10 Aug 2006
I've tried the various styles and most exhibit the same problem to about the same extent. However Kubrick is the exception, if I set Kubrick the "|More" fits into the header but the search box still extends of the edge. The font size is impossibly small on Kubrick though.
--
ChrisGreen - 10 Aug 2006
This is definitely a font problem. Try a font size of 16 in firefox. Using konqueror you get the same results using an average font size of 12.
I am able to reproduce the behavior you described. There are a couple of distances in the skin that are based on
em, that is they vary
depending on the current font size. I will need to rewrite those sizes based on px. Note, however, that while zooming in/out produces
a nice fluid behavior when distances are done using
em the thing is really depending on the
average font size that you have configured
in your browser.
If you say that you can't read kubrick, then your average font size in your browser is too low. You are probably using 12 in firefox. Try 16.
--
MichaelDaum - 10 Aug 2006
OK, yes, if I set my default font size in Firefox to 16 (or better 17) then things are better. However that font size makes many web sites have too large fonts (for me anyway), for example the results of a Google search look distinctly clunky.
Whatever, you seem to know about the problem and issues, there's not much point in dragging on about it here.
Thanks for all the help!
--
ChrisGreen - 11 Aug 2006