Closed Bug 1062204 Opened 10 years ago Closed 10 years ago

Pictures can't be scrolled in WebIDE and break scroll functionality afterwards

Categories

(DevTools Graveyard :: WebIDE, defect)

33 Branch
defect
Not set
normal

Tracking

(firefox33 affected, firefox34 affected, firefox35 affected)

RESOLVED FIXED
Firefox 35
Tracking Status
firefox33 --- affected
firefox34 --- affected
firefox35 --- affected

People

(Reporter: phorea, Assigned: jfong)

References

Details

Attachments

(2 files, 3 obsolete files)

Attached image PngView.png
Reproducible on:
latest Nightly 35.0a1 - 20140902121319
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
latest Aurora 34.0a2 - 20140902121245
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
Firefox 33 beta 1 - 20140902214533 (after enabling WebIDE)
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0

Steps to reproduce:
1. Open WebIDE (Shift+F8) and add an app
2. Verify that the left and the main area can be scrolled while opening different file types
3. Open a img/png file that doesn't fit the view (is larger)
4. Scroll other file types

Actual results:
3. The img/png files cannot be scrolled
4. Horizontal and vertical scroll is broken after viewing 

Expected results:
All files can be scrolled; scroll functionality is not broken

Note: 1. The issue reproduces also under Linux 12.10 32-bit and Mac OSX 10.8.5
2. The issue reproduces before bug 1027537 was fixed
I am seeing the inability to scroll an image in OSX and that the scrollbar disappears on the next file opened (although I can still scroll with the mouse wheel, and it comes back after resizing).

However, I'm not seeing the inability to scroll the files area after opening the image.  There is definitely something going on when opening an image bigger than the content area though, hopefully fixing this will fix all of the scrollbar issues.
Jen, this looks like a good bug to check out to learn about the WebIDE code base.

Let me know if you have any questions about it.
Assignee: nobody → jfong
Status: NEW → ASSIGNED
Attached patch bug1062204.patch (obsolete) — Splinter Review
Let me know if you want me to add a small test to this fix - thanks!
Attachment #8490313 - Flags: feedback?(jryans)
Comment on attachment 8490313 [details] [diff] [review]
bug1062204.patch

Review of attachment 8490313 [details] [diff] [review]:
-----------------------------------------------------------------

Ah, okay, I see what you meant over IRC now.  Yeah, vbox is very general and used for many purposes, so we should probably use a more specific selector here.

I believe the specific vbox you want is the one that is part of the |Shell| object[1].  I'd suggest adding a class to that vbox and using this as the selector here.

I don't feel like a test is needed here since it's a CSS-only change.

[1]: http://dxr.mozilla.org/mozilla-central/source/browser/devtools/projecteditor/lib/shells.js#31
Attachment #8490313 - Flags: feedback?(jryans)
Attached patch bug1062204.patch (obsolete) — Splinter Review
I found an existing id to attach to within that deck. Let me know if that's a safe place to assign the rule.
Attachment #8490313 - Attachment is obsolete: true
Attachment #8490390 - Flags: review?(jryans)
Comment on attachment 8490390 [details] [diff] [review]
bug1062204.patch

Review of attachment 8490390 [details] [diff] [review]:
-----------------------------------------------------------------

Unfortunately, that's not quite what we want.

If you open several different images, they each get their own vbox inside the deck, and the elements are left in the DOM even when not shown.

With this patch, if you have previously opened both a tall image (that needs scrollbars) and a short image (that does not), then even the short image which might fit within the current viewport is given scrollbars as if it were the size of the large image.  This problem goes away if you target the specific vboxs instead.
Attachment #8490390 - Flags: review?(jryans) → review-
Attached patch bug1062204.patch (obsolete) — Splinter Review
Maybe this one? :)
Attachment #8490390 - Attachment is obsolete: true
Attachment #8490432 - Flags: review?(jryans)
(a note about your commit message: add r=jryans, and say what you do in the patch, don't use the title of the bug: "Bug 1062204 - make pictures scrollable. r=jryans")
Attached patch bug1062204.patchSplinter Review
Updating commit msg
Attachment #8490432 - Attachment is obsolete: true
Attachment #8490432 - Flags: review?(jryans)
Attachment #8490440 - Flags: review?(jryans)
Comment on attachment 8490440 [details] [diff] [review]
bug1062204.patch

Review of attachment 8490440 [details] [diff] [review]:
-----------------------------------------------------------------

Cool, seems to work well to me! :)

The next step is to push this to Try to run tests.

Do you have access to Try?

If you do, please push it using a syntax such as "try: -b do -p all -u xpcshell,mochitest-dt,mochitest-o -t none" to run XPCShell, Browser Mochitests, and Chrome Mochitests.

If you do not, I'll push it this time, but you should also request level 1 commit access[1] in the mean time.

[1]: https://www.mozilla.org/hacking/commit-access-policy/
Attachment #8490440 - Flags: review?(jryans) → review+
Okay, the Try run looks good (enough...).

Once you've got a green Try run and you want to land your work, you set "checkin-needed" on the bug's keywords field, so feel free to do so!
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/18ac09aeaf6c
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 35
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: