moving the title and close button (#easyBottom) to the top of the window

28 views
Skip to first unread message

Mark Chitty

unread,
Nov 22, 2012, 7:32:31 AM11/22/12
to easybox...@googlegroups.com
hi there,

thanks for the plugin, it's really handy!

I had a need to move the controls from the bottom to the top of the page. whilst this is possible using css, it would be great to be able to do the same via the api.

cheers,

mark

Vincent Wochnik

unread,
Nov 22, 2012, 7:36:21 AM11/22/12
to easybox...@googlegroups.com
not possible i'm afraid

Mark Chitty

unread,
Nov 22, 2012, 9:15:03 AM11/22/12
to easybox...@googlegroups.com
well, 

in the short term, I've just added the following to the css. 

#easyContainer {
margin-top:30px;
}

#easyBottom {
position: absolute;
top:0;
}

which although not an elegant fix, works for me for the moment. in the long run, I'd like to look linking the api to this line to change the formatting:

        b("body").append(b([I = b('<div id="easyOverlay" />').click(J)[0], h = b('<div id="easyCenter" />').append([g = b('<div id="easyContainer" />')[0], v = b('<div id="easyLoadingIndicator" />')[0], w = b('<div id="easyBottom" />').append([D = b('<div id="easyNavigation" />').append([E = b('<a id="easyPrevLink" href="#" />').click(t)[0], F = b('<a id="easyNextLink" href="#" />').click(u)[0]])[0], U = b('<a id="easyCloseLink" href="#" />').click(J)[0], K = b('<a id="easySlideLink" href="#" />').click(Y)[0], m = b('<div id="easyCaption" />')[0], n = b('<div id="easyNumber" />')[0]])[0]])[0]]).css("display", "none"))

but that'll have to wait ...

mark 

Vincent Wochnik

unread,
Nov 22, 2012, 9:39:01 AM11/22/12
to easybox...@googlegroups.com
Problem is, the bottom fades out only when the content is loaded. That'd have to be changed, too. Why do you want the text above the content?

Mark Chitty

unread,
Nov 22, 2012, 10:33:13 AM11/22/12
to easybox...@googlegroups.com
that's interesting, I'm not seeing the fade behaviour. 

The main reason for wanting the Title and Close button above the content is that this is much more in line with what a user would expect from a 'window' UI element. 

cheers,

mark

Vincent Wochnik

unread,
Nov 22, 2012, 11:23:56 AM11/22/12
to easybox...@googlegroups.com
OK, on the gui aspect, I agree with you.
Reply all
Reply to author
Forward
0 new messages