When opening the browser in WYSIWYG it has the correct size:

Screen Shot 2013-04-17 at 1.28.42 PM.png

But when switching the tab the content is being cut off:

Screen Shot 2013-04-17 at 1.28.48 PM.png

Comments

devin carlson’s picture

Status: Active » Needs review
StatusFileSize
new9.16 KB

A patch to have the Media Browser dialog automatically size itself when loaded and resize itself when the window changes. It also keeps the browser centered when scrolling.

I think that this is about the best we can get unless the D8 dialog API is backported.

devin carlson’s picture

StatusFileSize
new9.03 KB

Updated version of #1 with some minor cleanups.

devin carlson’s picture

Might as well increase the number of items displayed in the browser while we're at it.

devin carlson’s picture

Status: Needs review » Fixed

Tested #3 with a number of browsers and didn't find any issues.

Committed to Media 7.x-2.x.

gmclelland’s picture

Great work @Devin Carlson! I just tested it on simplytest.me using https://drupal.org/project/media_dev and the media browser is much more usable now.

This will make many people very happy.

elijah lynn’s picture

Not sure if this is this issue but I will leave this here for now. The overlay is glitching out on scrolling now. Here is a very short screencast of the issue.

https://drive.google.com/file/d/0B47tip0c_KEtM24zcUYyalRad2s/edit?usp=sh...

elijah lynn’s picture

gmclelland - Nice tip! I posted #6 after verifying with the method you mentioned that it was not just my local environment! Super easy!

elijah lynn’s picture

Issue summary: View changes
Status: Fixed » Needs work

Okay, confirmed, I checked out alpha3 and overlay was not fitted correctly but no issue then applied the latest patch (#3) and the overlay fits nicely but is glitching out now.

devin carlson’s picture

Status: Needs work » Fixed
Related issues: +#2125659: Overlay glitching out

@Elijah Lynn let's use #2125659: Overlay glitching out to address the issue you're experiencing.

elijah lynn’s picture

@Devin Carlson - Sounds good, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

DruDoc’s picture

Status: Closed (fixed) » Needs review

Status: Needs review » Needs work

The last submitted patch, 3: size-media-browser-dialog-1972628-3.patch, failed testing.

DruDoc’s picture

StatusFileSize
new10.09 KB

with jquery 1.8,
Media popup window on clicking wysiwyg (with ckeditor 4.3 library) media browser button remains fixed at top left corner, doesn't resize nor resizeable, but scrollable.

Media 7.x-2.0-alpha3+46-dev

Any solution please?

(works fine with jquery 1.7)

DruDoc’s picture

sorry my bad.This is jquery related and duplicate
https://drupal.org/node/1957812

devin carlson’s picture

Status: Needs work » Closed (fixed)