TF-551 Fix mailbox scrollbar jumps and resizes on browser
This commit is contained in:
@@ -145,13 +145,12 @@ class MailboxView extends GetWidget<MailboxController> with AppLoaderMixin, Popu
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildListMailbox(BuildContext context) {
|
Widget _buildListMailbox(BuildContext context) {
|
||||||
return ListView(
|
return SingleChildScrollView(
|
||||||
controller: controller.mailboxListScrollController,
|
controller: controller.mailboxListScrollController,
|
||||||
key: const PageStorageKey('mailbox_list'),
|
key: const PageStorageKey('mailbox_list'),
|
||||||
primary: false,
|
physics: const ClampingScrollPhysics(),
|
||||||
shrinkWrap: true,
|
|
||||||
padding: EdgeInsets.only(right: _responsiveUtils.isDesktop(context) ? 16 : 0),
|
padding: EdgeInsets.only(right: _responsiveUtils.isDesktop(context) ? 16 : 0),
|
||||||
children: [
|
child: Column(children: [
|
||||||
Obx(() {
|
Obx(() {
|
||||||
if (controller.isSelectionEnabled() || _responsiveUtils.isDesktop(context)) {
|
if (controller.isSelectionEnabled() || _responsiveUtils.isDesktop(context)) {
|
||||||
return const SizedBox.shrink();
|
return const SizedBox.shrink();
|
||||||
@@ -163,12 +162,15 @@ class MailboxView extends GetWidget<MailboxController> with AppLoaderMixin, Popu
|
|||||||
? _buildMailboxCategory(context, MailboxCategories.exchange, controller.defaultRootNode)
|
? _buildMailboxCategory(context, MailboxCategories.exchange, controller.defaultRootNode)
|
||||||
: const SizedBox.shrink()),
|
: const SizedBox.shrink()),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
Obx(() => controller.folderMailboxHasChild
|
Obx(() {
|
||||||
? Column(children: const [
|
if (controller.folderMailboxHasChild) {
|
||||||
Divider(color: AppColor.colorDividerMailbox, height: 0.5, thickness: 0.2),
|
return Column(children: const [
|
||||||
SizedBox(height: 8),
|
Divider(color: AppColor.colorDividerMailbox, height: 0.5, thickness: 0.2),
|
||||||
])
|
SizedBox(height: 8),
|
||||||
: const SizedBox.shrink()),
|
]);
|
||||||
|
}
|
||||||
|
return const SizedBox.shrink();
|
||||||
|
}),
|
||||||
Obx(() => controller.folderMailboxHasChild
|
Obx(() => controller.folderMailboxHasChild
|
||||||
? _buildMailboxCategory(context, MailboxCategories.folders, controller.folderRootNode)
|
? _buildMailboxCategory(context, MailboxCategories.folders, controller.folderRootNode)
|
||||||
: const SizedBox.shrink()),
|
: const SizedBox.shrink()),
|
||||||
@@ -186,7 +188,7 @@ class MailboxView extends GetWidget<MailboxController> with AppLoaderMixin, Popu
|
|||||||
tooltip: AppLocalizations.of(context).new_mailbox,
|
tooltip: AppLocalizations.of(context).new_mailbox,
|
||||||
onTap: () => controller.goToCreateNewMailboxView())),
|
onTap: () => controller.goToCreateNewMailboxView())),
|
||||||
]),
|
]),
|
||||||
]
|
])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user