| java.lang.Object org.wings.plaf.css.PaddingVoodoo
PaddingVoodoo | final public class PaddingVoodoo (Code) | | This class collect various rendering workaround methods needed to fix issues with the Microsoft Internet Explorer.
It is primarily kept as separate utility class for documentational and reference purpose!
The methods call here should extensively document what they do and why to be maintainable.
author: Benjamin Schmid |
doBorderPaddingsWorkaround | public static void doBorderPaddingsWorkaround(SBorder border, Insets targetInsets, boolean firstRow, boolean firstCol, boolean lastCol, boolean lastRow)(Code) | | Utility method to add selected border's insets to the targetInsets .
Parameters: border - border containing insets Parameters: targetInsets - Target inset to modify Parameters: firstRow - if true , add top to top Parameters: firstCol - if true , add left to left Parameters: lastCol - if true , add right to right Parameters: lastRow - if true , add bottom to bottom |
doSimpleTablePaddingWorkaround | public static void doSimpleTablePaddingWorkaround(Device d, SComponent component) throws IOException(Code) | | MSIE does not support PADDING on table elements.
For borders we re-render their insets (which are paddings) on the inner TD elements.
Call this method after <TD and before >
Parameters: d - target device Parameters: component - source component |
hasPaddingInsets | public static boolean hasPaddingInsets(SComponent component)(Code) | | Parameters: component - The component to inspect true if the componentn has any padding insets requiring workaround |
|
|