Skip to content

Commit

Permalink
Re-added handling of tabs, toolbars, sheets for chart page.
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Krivonog <[email protected]>
  • Loading branch information
crnjan committed Jan 18, 2021
1 parent 132c83d commit f9603bb
Showing 1 changed file with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
<template>
<oh-chart class="oh-chart-page-chart" :context="this.context" />
<oh-chart
class="oh-chart-page-chart"
:class="{ 'with-tabbar': context.tab, 'with-toolbar': context.analyzer }"
:context="this.context" />
</template>

<style lang="stylus">
.oh-chart-page-chart
position absolute !important
background-color white
height: 100% !important
overflow-x hidden
top calc(var(--f7-safe-area-top) + var(--f7-navbar-height))
width 100%
height calc(100% - var(--f7-safe-area-top) - var(--f7-navbar-height)) !important
&.with-tabbar
height calc(100% - var(--f7-safe-area-top) - var(--f7-safe-area-bottom) - var(--f7-navbar-height) - var(--f7-tabbar-labels-height)) !important
&.with-toolbar
height calc(100% - var(--f7-safe-area-top) - var(--f7-safe-area-bottom) - var(--f7-navbar-height) - var(--f7-toolbar-height)) !important
&.sheet-opened
height calc(100% - var(--f7-safe-area-top) - var(--f7-safe-area-bottom) - var(--f7-navbar-height) - var(--f7-sheet-height)) !important
</style>

<script>
Expand Down

0 comments on commit f9603bb

Please sign in to comment.