Skip to content

Commit

Permalink
chore: minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
squidrye committed Oct 25, 2023
1 parent a7824d7 commit 31f3994
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class _FlowyPaneState extends State<FlowyPane> {
create: (context) => widget.node.tabs,
child: Consumer<TabsController>(
builder: (_, value, __) {
final topHeight = value.pages == 1
? HomeSizes.topBarHeight
: HomeSizes.topBarHeight + HomeSizes.tabBarHeight;

return DraggablePaneTarget(
size: Size(
widget.paneLayout.childPaneWidth,
Expand All @@ -66,9 +70,7 @@ class _FlowyPaneState extends State<FlowyPane> {
SliverPersistentHeader(
pinned: true,
delegate: _StickyHeaderDelegate(
height: value.pages == 1
? HomeSizes.topBarHeight
: HomeSizes.topBarHeight + HomeSizes.tabBarHeight,
height: topHeight,
child: DraggablePaneItem(
allowPaneDrag: widget.allowPaneDrag,
size: Size(
Expand Down Expand Up @@ -129,7 +131,8 @@ class _FlowyPaneState extends State<FlowyPane> {
],
).constrained(
width: widget.paneLayout.homePageWidth,
height: widget.paneLayout.homePageHeight,
height:
widget.paneLayout.homePageHeight - topHeight,
),
),
),
Expand Down

0 comments on commit 31f3994

Please sign in to comment.