Commit 6ba5b56
committed
Fix Sheet native blocking issue by adding a conditional background blocker.
1. In `Sheet.java`: Add a transparent `Button` (blocker) to the Sheet container if `Form.activePeerCount > 0`. This intercepts pointer events for native peers.
2. Ensure blocker is removed if peers are no longer present.
3. Update `KotlinUiTest.kt` (lightweight only) and `BrowserComponentScreenshotTest.java` (with peer) to include Sheet display, verifying both scenarios.
4. Use `sheet.show(0)` in tests to prevent animation-related instability.1 parent a404273 commit 6ba5b56
File tree
2 files changed
+3
-1
lines changed- CodenameOne/src/com/codename1/ui
- scripts/hellocodenameone/common/src/main/kotlin/com/codenameone/examples/hellocodenameone/tests
2 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
498 | | - | |
| 498 | + | |
| 499 | + | |
499 | 500 | | |
500 | 501 | | |
501 | 502 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
0 commit comments