formulabar: make it a grid to not move on activation

this puts buttons and inputs at fixed positions so they
don't move when we enter formula editing mode

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2dd99e3ac233b66847af0165359d15fb50a10a97
pull/8575/head
Szymon Kłos 2024-03-19 13:30:24 +01:00 committed by Szymon Kłos
parent bde997dfa8
commit d1e1f9d46d
2 changed files with 12 additions and 4 deletions

View File

@ -251,11 +251,13 @@
align-self: start;
}
#formulabar-toolbox > div {
#formulabar-toolbox > div,
#formulabar-buttons-toolbox > div {
align-items: start;
}
#formulabar {
padding: 4px;
background-color: var(--color-main-background);
border-top: 1px solid var(--color-border);
}
@ -266,5 +268,5 @@
#formulabar > div > div {
display: grid;
grid-template-columns: 110px auto;
grid-template-columns: 110px 120px auto;
}

View File

@ -102,7 +102,7 @@ class FormulaBar {
text: _('cell address')
},
{
id: 'formulabar-toolbox',
id: 'formulabar-buttons-toolbox',
type: 'toolbox',
children: [
{
@ -134,7 +134,13 @@ class FormulaBar {
type: 'customtoolitem',
text: _UNO('.uno:Cancel', 'spreadsheet'),
visible: false
},
}
]
},
{
id: 'formulabar-toolbox',
type: 'toolbox',
children: [
{
id: 'sc_input_window',
type: 'formulabaredit',