Greg Sheremeta has posted comments on this change.

Change subject: webadmin: title overlaps header icon
......................................................................


Patch Set 1:

(2 comments)

http://gerrit.ovirt.org/#/c/23771/1/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/dialog/SimpleDialogPanel.java
File 
frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/dialog/SimpleDialogPanel.java:

Line 85:         widget.addStyleName(style.contentWidget());
Line 86:     }
Line 87: 
Line 88:     void updateTitlePadding() {
Line 89:         Scheduler.get().scheduleDeferred(new ScheduledCommand() {
why the deferred?
Line 90:             @Override
Line 91:             public void execute() {
Line 92:                 int logoWidth = logoPanel.getOffsetWidth();
Line 93:                 if (logoWidth > 0) {


Line 90:             @Override
Line 91:             public void execute() {
Line 92:                 int logoWidth = logoPanel.getOffsetWidth();
Line 93:                 if (logoWidth > 0) {
Line 94:                     logoWidth += 10; //Add 10 pixels to account for 
margins/left style of the image div.
is it possible in GWT to read the margin and padding from the image's style? 
/noob
Line 95:                     
headerTitlePanel.getParent().getElement().getStyle().setMarginLeft(logoWidth, 
Unit.PX);
Line 96:                 }
Line 97:             }
Line 98:         });


-- 
To view, visit http://gerrit.ovirt.org/23771
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I398b5daf8c02734a7b0e9e9777494100ee808d12
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alexander Wels <aw...@redhat.com>
Gerrit-Reviewer: Einav Cohen <eco...@redhat.com>
Gerrit-Reviewer: Greg Sheremeta <gsher...@redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vsz...@redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to