question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sap.m.MessageBox - can not applyContentPadding of sap.m.Dialog

See original GitHub issue

I want to do something like this:

sap.m.MessageBox.show(new sap.m.List({
    items : []
}), {
    applyContentPadding: false
});

But sadly, sap.m.MessageBox does not proxy the applyContentPadding property to the sap.m.Dialog class.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
SunboXcommented, Jul 2, 2015

Yes, that would work.

But my point is, I don’t understand the possibility to pass in complex controls as content but not being able to set the content padding. One of both would make more sense to me. Also just being able to pass in a string and not being able to control the content padding (a very limited control) or passing in a List control and set the padding needed.

But if you want so, close this issue. Using a Dialog will work.

0reactions
flovogtcommented, Mar 3, 2022

Old issue. As already written be @Shtilianova this enhancement will not be implemented. Therefore, closing the issue. @SunboX Thanks a lot for opening the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sap.m.MessageBox - can not applyContentPadding of sap.m.Dialog -
I want to do something like this: sap.m.MessageBox.show(new sap.m.List({ items : [] }), { applyContentPadding: false });. But sadly, sap.m.
Read more >
Messagebox problem - SAP Community
I wanted to make a confirmation box for my delete button. This is the confirmation box function in the controller: handleConfirmationMessageBoxPress: function( ...
Read more >
sap.m.MessageBox - API Reference - Demo Kit - SAPUI5 SDK
Provides easier methods to create sap.m.Dialog with type sap.m.DialogType.Message, such as standard alerts, confirmation dialogs, or arbitrary message ...
Read more >
OpenUI5 Blog
MessageBox (sap.ui.commons and sap.m): can now display any control as content, not only strings (this is also being downported to 1.22 and ...
Read more >
Release Notes - OPENUI5 SDK
[FIX] sap.m.ListItemBase: Space key should not scroll down the list. [FIX] sap.m.MessageBox: HCB theme clean up; [FIX] sap.m.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found