Fix layout performance for required indicators in GridLayout #PL-2460

This commit is contained in:
Yuriy Artamonov 2013-09-04 16:25:46 +00:00
parent 718ac86845
commit 167ed13747
3 changed files with 11 additions and 5 deletions

View File

@ -60,7 +60,7 @@ def desktopModule = project(':cuba-desktop')
def portalModule = project(':cuba-portal')
def webAuthModule = project(':cuba-web-auth')
def vaadinVersion = '7.1.3.h.M4'
def vaadinVersion = '7.1.3.h.M5'
def servletApi = [group: 'org.apache.tomcat', name: 'servlet-api', version: '6.0.20']
def groovyArtifact = [group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.1.6']

View File

@ -43,12 +43,17 @@ public class CubaGridLayoutComponentSlot extends ComponentConnectorLayoutSlot im
@Override
public void setCaption(VCaption caption) {
if (rightCaption != null) {
getLayoutManager().unregisterDependency(getLayout(), rightCaption);
rightCaption.removeFromParent();
rightCaption = null;
}
super.setCaption(caption);
if (caption instanceof CubaCaptionWidget) {
if (isCaptionInline()) {
moveIndicatorsRight((CubaCaptionWidget) caption);
}
moveIndicatorsRight((CubaCaptionWidget) caption);
((CubaCaptionWidget) caption).setCaptionHolder(this);
}
}

View File

@ -57,6 +57,7 @@ public class CubaOrderedActionsLayoutWidget extends VAbstractOrderedLayout {
this.shortcutHandler = shortcutHandler;
}
@Override
public Slot getSlot(Widget widget) {
Slot slot = widgetToSlot.get(widget);
if (slot == null) {
@ -65,4 +66,4 @@ public class CubaOrderedActionsLayoutWidget extends VAbstractOrderedLayout {
}
return slot;
}
}
}