gecko-dev/toolkit/components/prompts/content
Emilio Cobos Álvarez 9475a4f44c Bug 1605724 - Ensure loading the dialog icons doesn't change over-all layout. r=dao
https://hg.mozilla.org/mozilla-central/rev/234701139a2a61d1262e609c9d8ac42384ecafda

Removed the following CSS rule:

  #iconContainer {
    -moz-box-pack: center;
    min-height: 55px; /* maximum icon height + icon margin */
    min-width: 58px; /* maximum icon width + icon margin */
  }

Which enforced the size of the icon row.

The icon loads asynchronously, so by the first time we fire DOMContentLoaded it
may not have loaded yet. This means that sizeToContent() will size the window to
an smaller size and stuff will wrap around when it loads.

<image> doesn't block onload so even delaying this wouldn't work.

Restore the wrapper to ensure loading the icon or not doesn't affect layout of
the dialog.

Differential Revision: https://phabricator.services.mozilla.com/D58705

--HG--
extra : moz-landing-system : lando
2020-01-10 00:15:23 +00:00
..
commonDialog.css Bug 1605724 - Ensure loading the dialog icons doesn't change over-all layout. r=dao 2020-01-10 00:15:23 +00:00
commonDialog.js Bug 1605724 - Call sizeToContent() again when the icon loads if it hasn't loaded yet. r=dao 2020-01-07 15:13:27 +00:00
commonDialog.xhtml Bug 1605724 - Ensure loading the dialog icons doesn't change over-all layout. r=dao 2020-01-10 00:15:23 +00:00
selectDialog.js Bug 1561435 - Format toolkit/components/, a=automatic-formatting 2019-07-05 11:14:05 +02:00
selectDialog.xhtml Bug 1601093, Rename the remaining .xul files to .xhtml in toolkit/ r=marionette-reviewers,mossop,whimboo 2019-12-11 17:44:54 +00:00
tabprompts.css
tabprompts.jsm Bug 1584627 - Remove ensureXBLBindingAttached from tabprompts.jsm. r=bgrins 2019-10-29 18:32:40 +00:00