import org.eclipse.gef.SnapToHelper;
import org.eclipse.gef.editparts.AbstractGraphicalEditPart;
import org.eclipse.gef.rulers.RulerProvider;
+import org.tizen.webuibuilder.BuilderConstants;
import org.tizen.webuibuilder.animator.model.part.AnimatorWidgetPart;
import org.tizen.webuibuilder.bridge.DesignerGoingBridge.WidgetPosition;
import org.tizen.webuibuilder.gef.figure.PageFigure;
@Override
public void cssPropertyChanged(CssEvent event) {
// called cssPropertyChanged(e) in HoverBrowserViewer()
+ String key = event.getPropertyKey();
+ if (key.equals(BuilderConstants.ATTRIBUTE_VALUE_WIDTH) || key.equals(BuilderConstants.ATTRIBUTE_VALUE_HEIGHT)) {
+ ((HoverBrowserViewer) getViewer()).updateModel();
+ }
((HoverBrowserViewer) getViewer()).updateStyle();
}
return true;
}
} else {
- String value = getPropertyValue(condition);
- if (value == null || value.isEmpty()) {
- return true;
- } else {
- return false;
+ String[] con = condition.split(BuilderConstants.COMMA);
+ for (int i = 0; i < con.length; i++) {
+ if (descriptor.getPropertyDescriptor(con[i]) != null) {
+ String value = getPropertyValue(condition);
+ if (value == null || value.isEmpty()) {
+ continue;
+ } else {
+ return false;
+ }
+ } else {
+ String styleValue = getSelectorPropertyValue(getDefaultSelectorName(), con[i]);
+
+ if (styleValue == null || styleValue.isEmpty()) {
+ continue;
+ } else {
+ return false;
+ }
+ }
}
+ return true;
}
}