mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 17:45:22 +00:00
ViewHeightSensor: hard-code style
This style is not about looks, so hard-code it instead of using style sheets.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// Copyright (c) 2022 The Pybricks Authors
|
||||
|
||||
/* This is a hack for correctly sizing to view height on mobile when not running in fullscreen mode. */
|
||||
|
||||
import { ResizeSensor } from '@blueprintjs/core';
|
||||
@@ -15,7 +18,10 @@ function ViewHeightSensor(): JSX.Element {
|
||||
);
|
||||
}}
|
||||
>
|
||||
<div id="pb-vh" className="h-100 w-100 p-absolute" />
|
||||
<div
|
||||
id="pb-vh"
|
||||
style={{ height: '100%', width: '100%', position: 'absolute' }}
|
||||
/>
|
||||
</ResizeSensor>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user