TF-1740: Add adr for issue

(cherry picked from commit 7709559f50749400664634d1b6fc25cdd2d26735)
This commit is contained in:
HuyNguyen
2023-04-21 13:03:55 +07:00
committed by Dat Vu
parent da99c5d49f
commit 5f3a5aa652
3 changed files with 67 additions and 41 deletions
@@ -0,0 +1,26 @@
# 22. Fix double vertical scroll bar when hide status bar
Date: 2023-04-21
## Status
- Issue: [#1740](https://github.com/linagora/tmail-flutter/issues/1740)
## Context
- Root cause:
- When we using `html_editor_enhanced` lib can't auto resize `HTML Iframe` when changing the size of the screen
- `.note-editor.note-airframe .note-editing-area .note-editable,.note-editor.note-frame .note-editing-area .note-editable` has an overridden padding under the widgets
- When enabling `Code View` modem has an overridden padding under the widgets. Can't see break line
## Decision
- Use `setFullScreen` to `HTML Iframe` for the purpose of automatically resizing when there are changes
- Remove padding of `.note-editor.note-airframe .note-editing-area .note-editable,.note-editor.note-frame .note-editing-area .note-editable`
- Enable resize editor `disableResizeEditor: false`
- Remove padding of `.note-editor.note-airframe .note-editing-area .note-codable,.note-editor.note-frame .note-editing-area .note-codable` when enabling `Code View` mode
## Consequences
- No longer appear two vertical scroll bars of content on the editor
- Automatically resize `HTML Iframe` for dimensions