-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: Common Issues | ||
--- | ||
|
||
## Window doesn't show up | ||
|
||
When a window doesn't have a size allocation on construction, | ||
it will never show up. | ||
You can solve this by wrapping the children in a box | ||
and forcing the box to have some size. | ||
For example when the window's direct child is a | ||
revealer that starts off with `reveal_child: false` | ||
|
||
```js | ||
Widget.Window({ | ||
child: Widget.Box({ | ||
css: 'padding: 1px;', | ||
child: Widget.Revealer(), | ||
}), | ||
}) | ||
``` |