Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x00x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Slackware Linux 10.1
Web server: Apache 2.05
Perl version: 5.8.4
Client OS: Slackware Linux 10.1
Web Browser: Firefox 1.5
Categories: Skin

-- ChrisGreen - 09 Aug 2006

Answer

ALERT! 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! smile

-- ChrisGreen - 11 Aug 2006

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2006-08-11 - ChrisGreen
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.