Problem/Motivation
In cases when operations (switching widgets, fetching thumbnails, loading libraries,...) take longer, the user sees only the white background of the entity browser. This is more evident when dealing with remote media sources, where we wait for the service to reply.
Proposed resolution
Display a throbber instead of a white pages.
Remaining tasks
- Review/improve patch (probably only works with modal now)
- Test various scenarios
User interface changes
Added throbber in the background which is then covered by the iframe content.
API changes
None
Data model changes
None
Comments
Comment #2
primsi commentedComment #3
slashrsm commentedLooks nice. It would be nice to have the same for iFrame display. This change seems to have caused propagation step of the display to become visible, which wasn't visible before AFAIK. Would be great if we could avoid that.
Please also create screenshots/animated gif and embed it to the issue.
Comment #4
sanja_m commentedAdded throbber for iFrame display and hid propagation step of the modal display.
Comment #5
slashrsm commentedThanks! We're almost there.
I still see the "Labels:..." text (for a shorter period of time, but anyway).
Would it make sense to move throbber inside last step of EB or at least hide that text with CSS?
Comment #6
sanja_m commentedAdded css for hiding propagation step.
Comment #7
mtodor commentedI have checked (tested) this functionality a bit. For modal it looks really good, but for iframe it's not so nice. In case when iframe width is "100%" it looks good, but if width is fixed then throbber is not centered. There is even worst case when iframe is smaller then 50% of container width, then throbber is visible all the time.
I'm not sure is there reason to have fixed iframe width instead of 100%? Because EB with iframe display looks ugly in any case with fixed width.
Comment #8
slashrsm commentedI can confirm this:
Problem is also with height. When iFrame closes (and height becomes 0 effectively) spinner still floats on top of content.
Comment #9
CTaPByK commentedFixed height problem from #8. Also, throbber is centered against iframe now.
Comment #10
rajab natshah+ Testing .... We need this.
Thank you.
Comment #11
slashrsm commentedThis doesn't solve the problem when width is set in relative value.
e.g. Entity browser is 50% wide. Then we set container's width to 50%, which makes the Entity browser 25%. And as a bonus we didn't even solve the original problem:
What is we set width on throbber instead of the parent container?
Comment #12
CTaPByK commentedI leave width setting for iframe parent container, and set iframe width to 100%. On that way throbber should be centered and for relative values of width. Screenshot is same as throbber.png on #9.
Comment #13
slashrsm commentedCommitted. Thanks!