-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZK-5647: Wrong groupbox layout on touch screen
- Loading branch information
1 parent
02607b0
commit 3e0716c
Showing
14 changed files
with
191 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
B100-ZK-5647.zul | ||
Purpose: | ||
Description: | ||
History: | ||
Fri Feb 16 13:21:29 CST 2024, Created by rebeccalai | ||
Copyright (C) 2024 Potix Corporation. All Rights Reserved. | ||
--> | ||
<zk> | ||
<label multiline="true"> | ||
1. open the page on touch screen | ||
2. the mold of the groupbox should be 3d | ||
</label> | ||
<groupbox id="root" mold="3d" open="false" width="420px"> | ||
<caption label="Click me to open the groupbox" /> | ||
<grid fulfill="root.onOpen"> | ||
<columns> | ||
<column label="Feature" hflex="1" /> | ||
<column label="Benefits" hflex="3" /> | ||
</columns> | ||
<rows> | ||
<row> | ||
<label value="Create On Demand" /> | ||
<label value="Components are created only when they are needed, | ||
saving both memory and rendering time." /> | ||
</row> | ||
</rows> | ||
</grid> | ||
</groupbox> | ||
The grid will be created when the open the content of groupbox | ||
</zk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
zktest/src/test/java/org/zkoss/zktest/zats/test2/B100_ZK_5647Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* B100_ZK_5647Test.java | ||
Purpose: | ||
Description: | ||
History: | ||
Tue Feb 20 15:11:13 CST 2024, Created by rebeccalai | ||
Copyright (C) 2024 Potix Corporation. All Rights Reserved. | ||
*/ | ||
package org.zkoss.zktest.zats.test2; | ||
|
||
import java.util.Collections; | ||
|
||
import org.junit.jupiter.api.Assertions; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
import org.openqa.selenium.chrome.ChromeOptions; | ||
|
||
import org.zkoss.test.webdriver.ExternalZkXml; | ||
import org.zkoss.test.webdriver.ForkJVMTestOnly; | ||
import org.zkoss.test.webdriver.WebDriverTestCase; | ||
|
||
@ForkJVMTestOnly | ||
public class B100_ZK_5647Test extends WebDriverTestCase { | ||
@RegisterExtension | ||
public static final ExternalZkXml CONFIG = new ExternalZkXml("/test2/enable-tablet-ui-zk.xml"); | ||
|
||
@Override | ||
protected ChromeOptions getWebDriverOptions() { | ||
return super.getWebDriverOptions() | ||
.setExperimentalOption("mobileEmulation", Collections.singletonMap("deviceName", "iPad")); | ||
} | ||
|
||
@Test | ||
public void test() { | ||
connect(); | ||
waitResponse(); | ||
Assertions.assertTrue(jq("@groupbox").hasClass("z-groupbox-3d")); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters