MozillaZine

Is there an extension for split-screen, to view two tabs?

Announce and Discuss the Latest Theme and Extension Releases.
Zoolcar9

User avatar
 
Posts: 2225
Joined: November 9th, 2004, 6:45 pm
Location: Jakarta, Indonesia (UTC+7)

Post Posted January 12th, 2007, 5:09 pm

alta88 wrote:zoolcar9, i sent piro an email with some ideas..

actually, the elegant way to do it is to have 1 horizontal and 1 vertical button. on drop, it would know if the mouse is over 50% of the box's middle, and split that way. 4 buttons is a lot of toolbar space.

what i would really like to see is this.

I don't know about that, but one button is enough, IMHO.
Last edited by Zoolcar9 on January 15th, 2007, 5:29 pm, edited 1 time in total.
My Firefox information | Add-ons | GitHub

"With great power, comes great desire to show it off."

alta88
 
Posts: 980
Joined: January 28th, 2006, 3:08 pm

Post Posted January 12th, 2007, 5:46 pm

i saw that - problem is you don't know which window (>1) has focus so you don't know where it's going to split. and if you go and click on a window, traversing another to get to the button can change that if it has mouseover handling.

Zoolcar9

User avatar
 
Posts: 2225
Joined: November 9th, 2004, 6:45 pm
Location: Jakarta, Indonesia (UTC+7)

Post Posted January 12th, 2007, 6:03 pm


That's why I use <code>document.commandDispatcher.focusedWindow</code> in the button code for window object. You must focus the window you want to split first, and then click the button to split the window.

My Firefox information | Add-ons | GitHub

"With great power, comes great desire to show it off."

alta88
 
Posts: 980
Joined: January 28th, 2006, 3:08 pm

Post Posted January 12th, 2007, 6:24 pm

wouldn't it be cool to have a drag and drop button do the split? :D just the gadget factor alone makes it worth a try, i think it would be a first, i haven't seen anything like it in moz land.

max1million
 
Posts: 2810
Joined: November 15th, 2004, 5:03 am

Post Posted January 13th, 2007, 1:20 am

So I guess I'm too late with my little http://www.geocities.com/max1million/sp ... 0.5-fx.zip . I just got done with some fixing up of the navigation buttons (back,forward,stop/reload,home) display, title, and stuff mentioned before. But it still one only adds one panel and uses the theme's icons. Open panel to left, bottom or right (left,middle or right click) with current URL from Split on context menu.

Ed1
 
Posts: 813
Joined: January 30th, 2005, 2:33 pm

Post Posted January 13th, 2007, 7:49 am

zoolcar9, thanks for pointing out the Split Browser option to hide those side arrow buttons. I should have looked harder before speaking.

alta88, since you seem to be in touch with Piro, how about considering another option for those buttons - having them appear only if the cursor hits the middle portion or near a corner (in an area xx pixels long) of the side, top or bottom edge. Then the user would more or less have to intentionally hit the arrow if desired rather than having it appear all the time. As it is now, for example, the arrow appears every time the cursor is moved to a toolbar or the right slider.

Just another idea - don't know if it's even possible.

alta88
 
Posts: 980
Joined: January 28th, 2006, 3:08 pm

Post Posted January 13th, 2007, 11:48 am

@max - if you call it SplitPanelLite, make it userchrome.js ready, make the code very small, you will have a market :D

@ed - i just sent him an email, like anyone can from his website contact.. i agree the splitting is not efficient. the current buttons appear all the time on mouseover, are too small one way and too big the other, timeout too fast, cursor should change to a 'hand' pointer. your idea is better but would still have cursors pop up unintended buttons frequently for a very infrequent use.

i'm sticking with the drag and drop button - which i realize can just be one button. if a pane is divided into 9 equal boxes, the middle box on the top/bottom/left/right receives the drop and the split is thus determined. i just don't know how to code it :( maybe those optimoz guys might get interested :) they figure out stuff like 'offset senstivity from 45° to make a diagonal motion'. :shock:

Ed1
 
Posts: 813
Joined: January 30th, 2005, 2:33 pm

Post Posted January 13th, 2007, 1:50 pm

alta88, I think Piro must be reading this thread, because he's already issued an update of Split Browser which seems to reflect some of this discussion!

Just some further nits on those top, bottom, side buttons. I think they should have a slightly different shape - not quite so long and narrow, maybe shorter still and a bit wider than the left/right buttons are now. And, as alta88 mentioned, they should stay displayed just for just a bit longer time to give the user more time to click - maybe 50% longer than now.

And, on my system, the button shading size does not match the button border size on the left and right buttons. And the top and bottom buttons are wider than the left/right buttons, with again the shading not matching the border locations.

I still feel that Split Browser is a great extension.

Zoolcar9

User avatar
 
Posts: 2225
Joined: November 9th, 2004, 6:45 pm
Location: Jakarta, Indonesia (UTC+7)

Post Posted January 14th, 2007, 10:17 am

<del>
I wrote a userChrome.js script to split the tab from tab context menu, if anyone interested.

:arrow: SplitBrowser_tabContext.uc.js

Image
</del>
Tweak: add boolean pref type "splitbrowser.tab.closetab" and set the value to "true" in about:config to close the tab after split it.

:!: Split Browser ver 0.2.2007011501 already add tab context menu
Last edited by Zoolcar9 on January 15th, 2007, 2:51 pm, edited 1 time in total.
My Firefox information | Add-ons | GitHub

"With great power, comes great desire to show it off."

Ed1
 
Posts: 813
Joined: January 30th, 2005, 2:33 pm

Post Posted January 14th, 2007, 10:27 am

zoolcar9, just tried this split tab script. The context menu entry and choices are there, but clicking on them has no effect on my system.

I have userchrome.js and Split Browser, today's release, installed.

Zoolcar9

User avatar
 
Posts: 2225
Joined: November 9th, 2004, 6:45 pm
Location: Jakarta, Indonesia (UTC+7)

Post Posted January 14th, 2007, 10:34 am


Did you get error messages on Error Console?

My Firefox information | Add-ons | GitHub

"With great power, comes great desire to show it off."

Ed1
 
Posts: 813
Joined: January 30th, 2005, 2:33 pm

Post Posted January 14th, 2007, 10:38 am

Yes, I get an error that states:

Error: (b || gBrowser).boxObject has no properties
Source file: chrome://splitbrowser/content/splitbrowser.js
Line: 60

That line is:

var height = !(aPosition & this.POSITION_HORIZONAL) ? parseInt((b || gBrowser).boxObject.height / 5 * 2) : -1 ;

Zoolcar9

User avatar
 
Posts: 2225
Joined: November 9th, 2004, 6:45 pm
Location: Jakarta, Indonesia (UTC+7)

Post Posted January 14th, 2007, 11:02 am


The error wasn't from my script. If you uninstall my script, do you still receive the error?

My Firefox information | Add-ons | GitHub

"With great power, comes great desire to show it off."

Ed1
 
Posts: 813
Joined: January 30th, 2005, 2:33 pm

Post Posted January 14th, 2007, 11:30 am

Without your script, that error is not displayed. But this error is displayed each time a Split Browser button (left, right, top or bottom) is pressed:

Error: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWebNavigation.canGoBack]
Source file: chrome://global/content/bindings/browser.xml

The split does work, though.

Zoolcar9

User avatar
 
Posts: 2225
Joined: November 9th, 2004, 6:45 pm
Location: Jakarta, Indonesia (UTC+7)

Post Posted January 14th, 2007, 11:40 am

Error: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWebNavigation.canGoBack]
Source file: chrome://global/content/bindings/browser.xml

Yea, I got the message too but we can ignore that. The problem is why my script works for me but doesn't work for you. I don't have any clue what causes it, probably there's conflict with other extension.

My Firefox information | Add-ons | GitHub

"With great power, comes great desire to show it off."

Return to Extension/Theme Releases


Who is online

Users browsing this forum: No registered users and 1 guest