Take padding into account when layouting.
Add: Dialog.
Minor fixes.