simed
24-09-2013 18:02:55
With Window skins, there is a inner client widget which actually contains the child widgets... you can safely position children right to the edge of window->getClientWidget().
But panels don't seem to work this way, with standard PanelSkin if I put widgets right at the edge they actually overlap the panel border.
Is there a safe way in code to know where I can put widgets so they are properly 'inside' the Panel, or should I just leave 2px or something like that? Ideally, changing the skin to one with thicker borders wouldn't break my layout!
But panels don't seem to work this way, with standard PanelSkin if I put widgets right at the edge they actually overlap the panel border.
Is there a safe way in code to know where I can put widgets so they are properly 'inside' the Panel, or should I just leave 2px or something like that? Ideally, changing the skin to one with thicker borders wouldn't break my layout!