Change-Id: Ie019abbda1664e8dd4f53a76f2c6f21e3bc5443btags/7.4.0.beta3
$scroll-divider-width: max(1px, first-number($v-border)); | $scroll-divider-width: max(1px, first-number($v-border)); | ||||
.#{$primary-stylename}-outerheader { | .#{$primary-stylename}-outerheader { | ||||
cursor: move; | |||||
position: absolute; | position: absolute; | ||||
z-index: 2; | z-index: 2; | ||||
top: 0; | top: 0; | ||||
} | } | ||||
.#{$primary-stylename}-header { | .#{$primary-stylename}-header { | ||||
cursor: move; | |||||
line-height: $v-unit-size - 1px; | line-height: $v-unit-size - 1px; | ||||
padding-left: round($v-unit-size/3); | padding-left: round($v-unit-size/3); | ||||
margin-right: $v-unit-size * 2; | margin-right: $v-unit-size * 2; |
package com.vaadin.tests.themes.valo; | |||||
import com.vaadin.annotations.Theme; | |||||
import com.vaadin.server.VaadinRequest; | |||||
import com.vaadin.tests.components.AbstractTestUI; | |||||
import com.vaadin.ui.Label; | |||||
import com.vaadin.ui.Window; | |||||
import com.vaadin.ui.themes.ValoTheme; | |||||
@Theme(ValoTheme.THEME_NAME) | |||||
public class NonDraggableWindow extends AbstractTestUI { | |||||
@Override | |||||
protected void setup(VaadinRequest request) { | |||||
Window window = new Window("Non-draggable window", new Label()); | |||||
window.setDraggable(false); | |||||
addWindow(window); | |||||
} | |||||
} |
package com.vaadin.tests.themes.valo; | |||||
import static org.hamcrest.CoreMatchers.is; | |||||
import static org.junit.Assert.assertThat; | |||||
import org.junit.Test; | |||||
import org.openqa.selenium.WebElement; | |||||
import com.vaadin.testbench.By; | |||||
import com.vaadin.tests.tb3.MultiBrowserTest; | |||||
public class NonDraggableWindowTest extends MultiBrowserTest { | |||||
@Test | |||||
public void cursorIsDefault() { | |||||
openTestURL(); | |||||
WebElement header = findElement(By.className("v-window-header")); | |||||
assertThat(header.getCssValue("cursor"), is("default")); | |||||
} | |||||
} |