-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core/pane-layout): remove absolute positioning (#1457)
- Loading branch information
1 parent
a852e75
commit 3d62fff
Showing
7 changed files
with
80 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@siemens/ix': major | ||
--- | ||
|
||
fix(core/pane-layout): remove absolute positioning |
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
60 changes: 60 additions & 0 deletions
60
packages/core/src/tests/panes/layout-responsive/index.html
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,60 @@ | ||
<!-- | ||
SPDX-FileCopyrightText: 2024 Siemens AG | ||
SPDX-License-Identifier: MIT | ||
--> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<meta | ||
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" | ||
name="viewport" | ||
/> | ||
<title>Stencil Component Starter</title> | ||
</head> | ||
<body style="width: 400px; height: 400px"> | ||
<ix-pane-layout | ||
id="pane-layout" | ||
variant="floating" | ||
layout="full-horizontal" | ||
borderless="true" | ||
> | ||
<ix-pane heading="Pane Left" slot="left" size="33%"> | ||
<p>This is the left pane.</p> | ||
</ix-pane> | ||
<ix-pane heading="Pane Top" slot="top" size="33%"> | ||
<p>This is the top pane.</p> | ||
</ix-pane> | ||
<ix-pane heading="Pane Right" slot="right" size="33%"> | ||
<p>This is the right pane.</p> | ||
</ix-pane> | ||
<ix-pane heading="Pane Bottom" slot="bottom" size="33%"> | ||
<p>This is the bottom pane.</p> | ||
</ix-pane> | ||
|
||
<div slot="content" style="display: flex; flex-direction: column;"> | ||
<ix-button id="toggle-variant" style="margin: 2.5rem">Toggle Variant</ix-button> | ||
<ix-button id="toggle-layout" style="margin: 2.5rem">Toggle Layout</ix-button> | ||
</div> | ||
</ix-pane-layout> | ||
|
||
<script> | ||
const paneLayout = document.getElementById("pane-layout"); | ||
const buttonVariant = document.getElementById("toggle-variant"); | ||
const buttonLayout = document.getElementById("toggle-layout"); | ||
|
||
buttonVariant.addEventListener("click", () => { | ||
const isInline = paneLayout.variant === 'inline' | ||
|
||
paneLayout.variant = isInline ? 'floating' : 'inline' | ||
paneLayout.borderless = isInline; | ||
}) | ||
buttonLayout.addEventListener("click", () => { | ||
paneLayout.layout = paneLayout.layout === "full-vertical" ? "full-horizontal" : "full-vertical" | ||
}) | ||
</script> | ||
<script src="http://127.0.0.1:8080/scripts/e2e/load-e2e-runtime.js"></script> | ||
</body> | ||
</html> |
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
Binary file added
BIN
+20.4 KB
...ne-layout-inline-collapsed-responsive-1-chromium---theme-classic-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+21.6 KB
...e-layout-inline-collapsed-responsive-1-chromium---theme-classic-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.