Don't scroll the navbar

This commit is contained in:
boatbomber 2023-01-05 11:11:36 -05:00
parent e24657ca4d
commit 9cf195691c

View file

@ -24,6 +24,11 @@ local function Navbar(props)
LayoutOrder = props.layoutOrder, LayoutOrder = props.layoutOrder,
BackgroundTransparency = 1, BackgroundTransparency = 1,
}, { }, {
Padding = e("UIPadding", {
PaddingLeft = UDim.new(0, 20),
PaddingRight = UDim.new(0, 20),
}),
Back = e(IconButton, { Back = e(IconButton, {
icon = Assets.Images.Icons.Back, icon = Assets.Images.Icons.Back,
iconSize = 24, iconSize = 24,
@ -101,17 +106,21 @@ function PermissionsPage:render()
end end
end end
return e(ScrollingFrame, { return e("Frame", {
size = UDim2.new(1, 0, 1, 0), Size = UDim2.new(1, 0, 1, 0),
contentSize = self.contentSize, BackgroundTransparency = 1,
transparency = self.props.transparency,
}, { }, {
Navbar = e(Navbar, { Navbar = e(Navbar, {
onBack = self.props.onBack, onBack = self.props.onBack,
transparency = self.props.transparency, transparency = self.props.transparency,
layoutOrder = 0,
}), }),
PluginSources = e(ScrollingFrame, {
size = UDim2.new(1, 0, 1, -47),
position = UDim2.new(0, 0, 0, 47),
contentSize = self.contentSize,
transparency = self.props.transparency,
}, {
Layout = e("UIListLayout", { Layout = e("UIListLayout", {
FillDirection = Enum.FillDirection.Vertical, FillDirection = Enum.FillDirection.Vertical,
SortOrder = Enum.SortOrder.LayoutOrder, SortOrder = Enum.SortOrder.LayoutOrder,
@ -121,12 +130,13 @@ function PermissionsPage:render()
end, end,
}), }),
Sources = Roact.createFragment(sources),
Padding = e("UIPadding", { Padding = e("UIPadding", {
PaddingLeft = UDim.new(0, 20), PaddingLeft = UDim.new(0, 20),
PaddingRight = UDim.new(0, 20), PaddingRight = UDim.new(0, 20),
}), }),
Sources = Roact.createFragment(sources),
}),
}) })
end) end)
end end