width: 100%;
height: 100%;
}
-.v-view {
+.v-ui {
height: 100%;
width: 100%;
/* avoid scrollbars with margins in root layout */
position: relative;
}
/* Prevent margin collapse */
-.v-view.v-view-embedded {
+.v-ui.v-ui-embedded {
margin-top: -1px;
border-top: 1px solid transparent;
}
height: auto;
min-height: 20cm;
}
- .v-view {
+ .v-ui {
overflow: visible;
}
.v-gridlayout {
overflow: visible !important;
}
}
-.v-view:active,
-.v-view:focus {
+.v-ui:active,
+.v-ui:focus {
outline: none;
}
.v-app select,
overflow: hidden;
}
- .v-view {
+ .v-ui {
margin-top: 0;
border-top: none;
}
/*****************************************************************************/
/* The reference screenshots all have a white background */
/*****************************************************************************/
-.v-view {
+.v-ui {
background: #fff;
}
Window.ClosingHandler, ShortcutActionHandlerOwner, Focusable,
HasResizeHandlers {
- private static final String CLASSNAME = "v-view";
-
private static int MONITOR_PARENT_TIMER_INTERVAL = 1000;
/** For internal use only. May be removed or replaced in the future. */
public VUI() {
super();
- setStyleName(CLASSNAME);
-
// Allow focusing the view by using the focus() method, the view
// should not be in the document focus flow
getElement().setTabIndex(-1);
* Must set absolute position if the child has relative height and
* there's a chance of horizontal scrolling as some browsers will
* otherwise not take the scrollbar into account when calculating the
- * height. Assuming v-view does not have an undefined width for now, see
+ * height. Assuming v-ui does not have an undefined width for now, see
* #8460.
*/
if (child.isRelativeHeight() && !BrowserInfo.get().isIE9()) {
* .v-theme-<themeName, remove non-alphanum>
*/
- String appClass = "v-app-"
- + context.getSession().getClass().getSimpleName();
-
- String classNames = "v-app " + appClass;
List<Node> fragmentNodes = context.getBootstrapResponse()
.getFragmentNodes();
Element mainDiv = new Element(Tag.valueOf("div"), "");
mainDiv.attr("id", context.getAppId());
- mainDiv.addClass(classNames);
+ mainDiv.addClass("v-app");
if (style != null && style.length() != 0) {
mainDiv.attr("style", style);
}
import com.vaadin.shared.ComponentState;
public class UIState extends ComponentState {
+ {
+ primaryStyleName = "v-ui";
+ }
}
\ No newline at end of file