From: Leif Åstrand Date: Thu, 9 Feb 2012 18:13:40 +0000 (+0200) Subject: Use box-sizing: border-box for all paintables (#8313) X-Git-Tag: 7.0.0.alpha2~434^2~70 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c6ef3aa139dae091fd3a27809361fe631041e3d2;p=vaadin-framework.git Use box-sizing: border-box for all paintables (#8313) --- diff --git a/WebContent/VAADIN/themes/base/paintable/paintable.css b/WebContent/VAADIN/themes/base/paintable/paintable.css new file mode 100644 index 0000000000..1de0b70c38 --- /dev/null +++ b/WebContent/VAADIN/themes/base/paintable/paintable.css @@ -0,0 +1,4 @@ +.v-paintable { + box-sizing: border-box; + -moz-box-sizing: border-box; +} \ No newline at end of file diff --git a/src/com/vaadin/terminal/gwt/client/ui/VAbstractPaintableWidget.java b/src/com/vaadin/terminal/gwt/client/ui/VAbstractPaintableWidget.java index dcb95103d5..e02e3f4a44 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VAbstractPaintableWidget.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VAbstractPaintableWidget.java @@ -318,6 +318,7 @@ public abstract class VAbstractPaintableWidget implements VPaintableWidget { StringBuffer styleBuf = new StringBuffer(); styleBuf.append(primaryStyleName); + styleBuf.append(" v-paintable"); // first disabling and read-only status if (!enabled) { diff --git a/src/com/vaadin/terminal/gwt/client/ui/layout/VLayoutSlot.java b/src/com/vaadin/terminal/gwt/client/ui/layout/VLayoutSlot.java index 9cb2a3aa63..8581fade8d 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/layout/VLayoutSlot.java +++ b/src/com/vaadin/terminal/gwt/client/ui/layout/VLayoutSlot.java @@ -24,11 +24,6 @@ public abstract class VLayoutSlot { this.widget = widget; wrapper.getStyle().setPosition(Position.ABSOLUTE); - - // TODO set box sizing in CSS - Style widgetStyle = widget.getElement().getStyle(); - widgetStyle.setProperty("MozBoxSizing", "border-box"); - widgetStyle.setProperty("boxSizing", "border-box"); } public VCaption getCaption() {