diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-05-04 23:14:33 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-05-04 23:14:33 +0200 |
commit | 9e52a8721e4df22018817a46e32273da77aa81c6 (patch) | |
tree | 1d6919ac4d00842594a2993200cfe8cf74c431a0 /src/test | |
parent | 5f8c1decc2ec0d63ed97d7018a0d7cc6e4dc2667 (diff) | |
download | kvision-9e52a8721e4df22018817a46e32273da77aa81c6.tar.gz kvision-9e52a8721e4df22018817a46e32273da77aa81c6.tar.bz2 kvision-9e52a8721e4df22018817a46e32273da77aa81c6.zip |
DockPanel usability fixes
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/kotlin/test/pl/treksoft/kvision/panel/DockPanelSpec.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/kotlin/test/pl/treksoft/kvision/panel/DockPanelSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/panel/DockPanelSpec.kt index 8704353d..de4cf43d 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/panel/DockPanelSpec.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/panel/DockPanelSpec.kt @@ -44,7 +44,7 @@ class DockPanelSpec : DomSpec { dockPanel.add(Label("mno"), Side.CENTER) val element = document.getElementById("test") assertEqualsHtml( - "<div><div style=\"display: flex; flex-direction: column; justify-content: space-between; align-items: stretch;\"><div style=\"order: 2;\"><div style=\"display: flex; justify-content: space-between; align-items: center;\"><div style=\"order: 3;\"><span>def</span></div><div style=\"order: 1;\"><span>jkl</span></div><div style=\"order: 2;\"><span>mno</span></div></div></div><div style=\"order: 1; align-self: center;\"><span>abc</span></div><div style=\"order: 3; align-self: center;\"><span>ghi</span></div></div></div>", + "<div><div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch;\"><div style=\"order: 2; flex-grow: 1; flex-basis: 0%;\"><div style=\"width: 100%; height: 100%; display: flex; justify-content: space-between; align-items: stretch;\"><div style=\"order: 3; flex-basis: 0%;\"><span>def</span></div><div style=\"order: 1; flex-basis: 0%;\"><span>jkl</span></div><div style=\"order: 2; flex-grow: 1; flex-basis: 0%;\"><span>mno</span></div></div></div><div style=\"order: 1; flex-basis: 0%;\"><span>abc</span></div><div style=\"order: 3; flex-basis: 0%;\"><span>ghi</span></div></div></div>", element?.innerHTML, "Should render correct dock panel" ) |