Problem/Motivation
Entity Browser IFrame height is calculated as 100% of parent .ui-dialog-content wrapper. The problem is that by default display model of IFrame is inline and inline elements have line-height value. As a result, the actual value of IFrame will be bigger than its parent and that will trigger showing of vertical scrollbar. This is a problem that is reproducible in Chrome and it seems that Firefox is not affected. I didn't test other browsers.
Here is a screenshot of this problem:

Proposed resolution
A couple of solution to this problem is discussed in https://stackoverflow.com/a/9131632 but I think that in our case the most correct approach is to switch IFrame display model to block.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | entity-browser-iframe-scrollbar-3055358-4.patch | 1.27 KB | pivica |
| #4 | interdiff-3055358-2-4.txt | 1.18 KB | pivica |
| Selection_357.png | 413.87 KB | pivica |
Comments
Comment #2
pivica commentedHere is a patch.
Comment #3
oknateThanks, Pivica, this looks easy to verify. I'll take a look as soon as possible.
Comment #4
pivica commentedI guess it makes sense to do the same for EB IFrame that is not in a modal dialog.
Comment #5
mbovan commentedLooks good.
Comment #8
oknateCommitted, thanks!
🎉