Files
textual/tests/snapshot_tests/snapshot_apps/viewport_units.py
darrenburns 40cc2db3b9 Fix for viewport units, remove DataTable max-height (#2247)
* Add viewport units snapshot test

* Fix snapshot app

* Update snapshots

* Update DataTable max-height to 100%

* Update CHANGELOG.md

* Remove max height from DataTable CSS
2023-04-10 16:13:48 +01:00

15 lines
325 B
Python

from textual.app import App, ComposeResult
from textual.widgets import Static
class ViewportUnits(App):
CSS = """Static {width: 100vw; height: 100vh; border: solid cyan;} """
def compose(self) -> ComposeResult:
yield Static("Hello, world!")
app = ViewportUnits()
if __name__ == '__main__':
app.run()