| Page 1 of 2 | [ 12 posts ] | Go to page 1, 2 Next |
|
Hi I have been trying for the last four days to try to produce a layout similar to http://dojotoolkit.org/documentation/tutorials/1.6/dijit_layout/demo/appLayout.html
I am only interested in the main layout not the tabview part at present. I need the ability to vary the column width between Sidebar content (left) and Group 1 Content. I have tried using grids with two divs can resize one but not both inside a 'yui3-g' class. I have also tried widgets as panels but did not get very far. EDIT This is the code I tried with div's worked well until I populated div's with content http://jsfiddle.net/allanb/zjFEj/1/ |
Juan Ignacio DopazoYUI Contributor
|
You could use YUI2in3 and use the YUI2 LayoutManager.
|
|
Thank you for your reply jdopazo I was hoping for a YUI3 way.
I listened to a talk on the subject on Open Hours it seems that this is where the team is hoping to get to in the near future. I will play around a bit more with Layouts in YUI2 I have it working on a jsfiddle inside of yui3. Does yui3 pull down all the required CCS files? (as some styling seems missing) Is there a local version of something like jsfiddle to only work with yui? Living in Africa with slow internet connections and limited caps (restrictions on up/download quantity) |
Juan Ignacio DopazoYUI Contributor
|
Yes, the objective is to have all YUI2 widgets available in YUI3. And the temporary solution is to use YUI2in3.
Most of the time a lot of the functionality appears first in the gallery, but in this case the LayoutManager widget is missing apparently. I wrote a very simple version for a project of mine. I'll see if I can get it to you soon. It's very rudimentary though. |
|
I did manage to find a jsfiddle from you on the forums http://jsfiddle.net/juandopazo/SFcFB/.
I will try and get this working without the grids and see if I can get it to resize one of the divs. Will postback if I have a query or just with a solution. Thank you again. |
|
I had great problems with yui2 in yui3 on jsfiddle.net.
The resizing handles do no show. I tried using just divs with resize on the left side in YUI3. I have a jsfiddle http://jsfiddle.net/allanb/zjFEj/ This is almost working. Till I make the main content larger. The problem seems the Main div. I have tried various css but this is the closest I have made. Does anyone have any ideas? |
Juan Ignacio DopazoYUI Contributor
|
I don't think that CSS combination ("float: left" for one div and "width: 100%" for the other) works in IE < 8.
You're very likely going to have to use the events provided by the resize utility to resize the other div. Something like... Code: var other = Y.one('#otherNode'); var parent = other.get('parentNode'); var resize = new Y.Resize({ node: '#someNode', on: { 'resize:resize': function (e) { other.setStyle('width', parent.get('offsetWidth') - e.info.offsetWidth); } } }); |
|
Thank you @jdopazo I will give that a try today seems the way to go. I was not sure how to implement same.
Regards Allan |
Juan Ignacio DopazoYUI Contributor
|
allanb wrote: Is there a local version of something like jsfiddle to only work with yui? Living in Africa with slow internet connections and limited caps (restrictions on up/download quantity) Regarding how to work locally with YUI, you can download the library from the download link in the homepage and put it in some folder in your local webserver. Then, in your scripts do this: Code: YUI({ base: 'http://localhost/path/to/yui3/build/', combine: false }).use(..., fn); |
|
Thank you once again. I have my div version working at present not complete will post solution for all to see when it is more how I want it.
I will try your last tip for localhost. How would I include YUI2 for (YUI2 in YUI3) using above example? |
| Page 1 of 2 | [ 12 posts ] | Go to page 1, 2 Next |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group