Skip to content

Commit

Permalink
PushButtonControl: Fix alignment (regression from locking overlay)
Browse files Browse the repository at this point in the history
With the "new" wrapper introduced in
e02e1df all the buttons are misaligned.
- Ensure that the wrapper is set with its child centered

Signed-off-by: Pedro Pinto Silva <[email protected]>
Change-Id: I73b0c7952daf70851a59e4b0e290ba3d32feed23
  • Loading branch information
pedropintosilva committed Jul 26, 2024
1 parent 610d11a commit b238f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser/src/control/Control.JSDialogBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,7 @@ L.Control.JSDialogBuilder = L.Control.extend({
if (data.id && data.id === 'changepass' && builder.map['wopi'].IsOwner === false) {
data.enabled = false;
}
var wrapper = L.DomUtil.create('div', '', parentContainer); // need for locking overlay
var wrapper = L.DomUtil.create('div', 'd-flex justify-content-center', parentContainer); // need for locking overlay
var pushbutton = L.DomUtil.create('button', 'ui-pushbutton ' + builder.options.cssClass, wrapper);
pushbutton.id = data.id;
builder._setAccessKey(pushbutton, builder._getAccessKeyFromText(data.text));
Expand Down

0 comments on commit b238f7e

Please sign in to comment.