|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
setHeight on grid elementsHi Cyril,
Could you please have a look at the following code. It seems that there are some problems on the resizing of Grids widgets... myPopup = new rialto.widget.PopUp('myPopup',5,350,'500','550',null,'','transparent',{withCloseButon:false,visible:true}); myTabFolder = new rialto.widget.TabFolder({name:'myTabFolder',top:0,left:0,width:578,height:100,parent:document.body,widthItem:120,autoResizeTab:false,isClosable:false,draggableItem:false}); myBrowseFolder = myTabFolder.addTabItem("Browse",true); mySearchFolder = myTabFolder.addTabItem("Search",true); myLabel = new rialto.widget.Label('myLabel',5,5,mySearchFolder,"Contains","libelle1"); myContains = new rialto.widget.Text('myContains',20,5,160,'A',mySearchFolder,{autoUp:false,isRequired:false,disable:false,initValue:"*A*",nbchar:100}); myGrid = new rialto.widget.Grid({top:45, left:5, height:'90%', parent:mySearchFolder, arrHeader:[{title:'',type:"string",width:20},{title:"Col1",type:"string",width:150},{title:"Col2",type:"string",width:330}], name:'myGrid', boolPrint:false, switchable:false, autoResizableW:false, lineHeight:20}); myTabFolder.attach(myPopup); myTabFolder.setHeight(myPopup.height-40); for(var i=0;i<50;i++) { myGrid.addOneLine(['','coucou'+i,'coucou'+i]); } mGrid is supposed to be '90%' of 'mySearchFolder' but it doesn't seem to be resized... Thanks Fred |
|
|
Re: setHeight on grid elementsFred,
I fixed it.But why don't you set the autoResizableH property to true for the grid. It is the best way to make autoResize behavior in Rialto. Cyril --- In rialto-dev@..., "frederic_viollet" <frederic.viollet@...> wrote: > > Hi Cyril, > > Could you please have a look at the following code. > It seems that there are some problems on the resizing of Grids widgets... > > myPopup = new > rialto.widget.PopUp('myPopup',5,350,'500','550',null,'','transparent',{withCloseButon:false,visible:true}); > myTabFolder = new > rialto.widget.TabFolder({name:'myTabFolder',top:0,left:0,width:578,height:100,parent:document.body,widthItem:120,autoResizeTab:false,isClosable:false,draggableItem:false}); > > myBrowseFolder = myTabFolder.addTabItem("Browse",true); > mySearchFolder = myTabFolder.addTabItem("Search",true); > myLabel = new > rialto.widget.Label('myLabel',5,5,mySearchFolder,"Contains","libelle1"); > myContains = new > rialto.widget.Text('myContains',20,5,160,'A',mySearchFolder,{autoUp:false,isRequired:false,disable:false,initValue:"*A*",nbchar:100}); > myGrid = new rialto.widget.Grid({top:45, left:5, height:'90%', > parent:mySearchFolder, > arrHeader:[{title:'',type:"string",width:20},{title:"Col1",type:"string",width:150},{title:"Col2",type:"string",width:330}], > name:'myGrid', boolPrint:false, switchable:false, > autoResizableW:false, lineHeight:20}); > > myTabFolder.attach(myPopup); > myTabFolder.setHeight(myPopup.height-40); > > for(var i=0;i<50;i++) { > myGrid.addOneLine(['','coucou'+i,'coucou'+i]); > } > > mGrid is supposed to be '90%' of 'mySearchFolder' but it doesn't seem > to be resized... > > Thanks > Fred > |
|
|
Re: setHeight on grid elementsHi Cyril,
:) Indeed, it works very well with the autoResizableH property set to true. I didn't even know about this property ;) Thanks Fred --- In rialto-dev@..., "Cyril Balit" <cbalit@...> wrote: > > Fred, > > I fixed it.But why don't you set the autoResizableH property to true > for the grid. It is the best way to make autoResize behavior in Rialto. > > Cyril > > --- In rialto-dev@..., "frederic_viollet" > <frederic.viollet@> wrote: > > > > Hi Cyril, > > > > Could you please have a look at the following code. > > It seems that there are some problems on the resizing of Grids > widgets... > > > > myPopup = new > > > > > myTabFolder = new > > > rialto.widget.TabFolder({name:'myTabFolder',top:0,left:0,width:578,height:100,parent:document.body,widthItem:120,autoResizeTab:false,isClosable:false,draggableItem:false}); > > > > myBrowseFolder = myTabFolder.addTabItem("Browse",true); > > mySearchFolder = myTabFolder.addTabItem("Search",true); > > myLabel = new > > rialto.widget.Label('myLabel',5,5,mySearchFolder,"Contains","libelle1"); > > myContains = new > > > rialto.widget.Text('myContains',20,5,160,'A',mySearchFolder,{autoUp:false,isRequired:false,disable:false,initValue:"*A*",nbchar:100}); > > myGrid = new rialto.widget.Grid({top:45, left:5, height:'90%', > > parent:mySearchFolder, > > > arrHeader:[{title:'',type:"string",width:20},{title:"Col1",type:"string",width:150},{title:"Col2",type:"string",width:330}], > > name:'myGrid', boolPrint:false, switchable:false, > > autoResizableW:false, lineHeight:20}); > > > > myTabFolder.attach(myPopup); > > myTabFolder.setHeight(myPopup.height-40); > > > > for(var i=0;i<50;i++) { > > myGrid.addOneLine(['','coucou'+i,'coucou'+i]); > > } > > > > mGrid is supposed to be '90%' of 'mySearchFolder' but it doesn't seem > > to be resized... > > > > Thanks > > Fred > > > |
|
|
Re: setHeight on grid elementsHi Cyril,
I've changed some of my grids to use the autoResizableH property, but IE notifies me of new problems here.... It raises a 'Argument non valide.' at line 12422 of rialto.js It seems that 'widthCalc' is not a valid number. Here's some code to reproduce the issue. (It only occurs on IE) myFrame = new rialto.widget.Frame({name:'myFrame',top:'0',left:'0',width:'100%',height:'100%',title:' ',open:true,dynamic:false,position:'absolute',draggable:false,parent:document.body}); myFrame.setVisible(false); myTabFolder = new rialto.widget.TabFolder({name:'myTabFolder',top:0,left:0,width:578,height:100,parent:myFrame,widthItem:120,autoResizeTab:false,isClosable:false,draggableItem:false}); myBrowseFolder = myTabFolder.addTabItem("Browse",true); mySearchFolder = myTabFolder.addTabItem("Search",true); myLabel = new rialto.widget.Label('myLabel',5,5,mySearchFolder,"Contains","libelle1"); myContains = new rialto.widget.Text('myContains',20,5,160,'A',mySearchFolder,{autoUp:false,isRequired:false,disable:false,initValue:"*A*",nbchar:100}); myGrid = new rialto.widget.Grid({top:45, left:5, height:'90%', parent:mySearchFolder, arrHeader:[{title:'',type:"string",width:20},{title:"Col1",type:"string",width:150},{title:"Col2",type:"string",width:330}], name:'myGrid', boolPrint:false, switchable:false, autoResizableW:false, autoResizableW:true, lineHeight:20}); --- In rialto-dev@..., "frederic_viollet" <frederic.viollet@...> wrote: > > Hi Cyril, > > :) Indeed, it works very well with the autoResizableH property set to > true. I didn't even know about this property ;) > > Thanks > > Fred > > --- In rialto-dev@..., "Cyril Balit" <cbalit@> wrote: > > > > Fred, > > > > I fixed it.But why don't you set the autoResizableH property to true > > for the grid. It is the best way to make autoResize behavior in > > > > Cyril > > > > --- In rialto-dev@..., "frederic_viollet" > > <frederic.viollet@> wrote: > > > > > > Hi Cyril, > > > > > > Could you please have a look at the following code. > > > It seems that there are some problems on the resizing of Grids > > widgets... > > > > > > myPopup = new > > > > > > > > > myTabFolder = new > > > > > > rialto.widget.TabFolder({name:'myTabFolder',top:0,left:0,width:578,height:100,parent:document.body,widthItem:120,autoResizeTab:false,isClosable:false,draggableItem:false}); > > > > > > myBrowseFolder = myTabFolder.addTabItem("Browse",true); > > > mySearchFolder = myTabFolder.addTabItem("Search",true); > > > myLabel = new > > > > rialto.widget.Label('myLabel',5,5,mySearchFolder,"Contains","libelle1"); > > > myContains = new > > > > > > > > > myGrid = new rialto.widget.Grid({top:45, left:5, height:'90%', > > > parent:mySearchFolder, > > > > > > arrHeader:[{title:'',type:"string",width:20},{title:"Col1",type:"string",width:150},{title:"Col2",type:"string",width:330}], > > > name:'myGrid', boolPrint:false, switchable:false, > > > autoResizableW:false, lineHeight:20}); > > > > > > myTabFolder.attach(myPopup); > > > myTabFolder.setHeight(myPopup.height-40); > > > > > > for(var i=0;i<50;i++) { > > > myGrid.addOneLine(['','coucou'+i,'coucou'+i]); > > > } > > > > > > mGrid is supposed to be '90%' of 'mySearchFolder' but it doesn't > > > to be resized... > > > > > > Thanks > > > Fred > > > > > > |
|
|
Re: setHeight on grid elements--- In rialto-dev@..., "frederic_viollet"
<frederic.viollet@...> wrote: > > Hi Cyril, > > I've changed some of my grids to use the autoResizableH property, but > IE notifies me of new problems here.... > It raises a 'Argument non valide.' at line 12422 of rialto.js > It seems that 'widthCalc' is not a valid number. > > Here's some code to reproduce the issue. (It only occurs on IE) > > myFrame = new > > ',open:true,dynamic:false,position:'absolute',draggable:false,parent:document.body}); > myFrame.setVisible(false); > myTabFolder = new > rialto.widget.TabFolder({name:'myTabFolder',top:0,left:0,width:578,height:100,parent:myFrame,widthItem:120,autoResizeTab:false,isClosable:false,draggableItem:false}); > > myBrowseFolder = myTabFolder.addTabItem("Browse",true); > mySearchFolder = myTabFolder.addTabItem("Search",true); > myLabel = new > rialto.widget.Label('myLabel',5,5,mySearchFolder,"Contains","libelle1"); > myContains = new > rialto.widget.Text('myContains',20,5,160,'A',mySearchFolder,{autoUp:false,isRequired:false,disable:false,initValue:"*A*",nbchar:100}); > myGrid = new rialto.widget.Grid({top:45, left:5, height:'90%', > parent:mySearchFolder, > arrHeader:[{title:'',type:"string",width:20},{title:"Col1",type:"string",width:150},{title:"Col2",type:"string",width:330}], > name:'myGrid', boolPrint:false, switchable:false, > autoResizableW:false, autoResizableW:true, lineHeight:20}); ^^^^^^^^^^^^^^^^^^ autoResizableH:true > > > --- In rialto-dev@..., "frederic_viollet" > <frederic.viollet@> wrote: > > > > Hi Cyril, > > > > :) Indeed, it works very well with the autoResizableH property set to > > true. I didn't even know about this property ;) > > > > Thanks > > > > Fred > > > > --- In rialto-dev@..., "Cyril Balit" <cbalit@> wrote: > > > > > > Fred, > > > > > > I fixed it.But why don't you set the autoResizableH property to true > > > for the grid. It is the best way to make autoResize behavior in > Rialto. > > > > > > Cyril > > > > > > --- In rialto-dev@..., "frederic_viollet" > > > <frederic.viollet@> wrote: > > > > > > > > Hi Cyril, > > > > > > > > Could you please have a look at the following code. > > > > It seems that there are some problems on the resizing of Grids > > > widgets... > > > > > > > > myPopup = new > > > > > > > > > > > > > > myTabFolder = new > > > > > > > > > > rialto.widget.TabFolder({name:'myTabFolder',top:0,left:0,width:578,height:100,parent:document.body,widthItem:120,autoResizeTab:false,isClosable:false,draggableItem:false}); > > > > > > > > myBrowseFolder = myTabFolder.addTabItem("Browse",true); > > > > mySearchFolder = myTabFolder.addTabItem("Search",true); > > > > myLabel = new > > > > > > rialto.widget.Label('myLabel',5,5,mySearchFolder,"Contains","libelle1"); > > > > myContains = new > > > > > > > > > > rialto.widget.Text('myContains',20,5,160,'A',mySearchFolder,{autoUp:false,isRequired:false,disable:false,initValue:"*A*",nbchar:100}); > > > > myGrid = new rialto.widget.Grid({top:45, left:5, height:'90%', > > > > parent:mySearchFolder, > > > > > > > > > > arrHeader:[{title:'',type:"string",width:20},{title:"Col1",type:"string",width:150},{title:"Col2",type:"string",width:330}], > > > > name:'myGrid', boolPrint:false, switchable:false, > > > > autoResizableW:false, lineHeight:20}); > > > > > > > > myTabFolder.attach(myPopup); > > > > myTabFolder.setHeight(myPopup.height-40); > > > > > > > > for(var i=0;i<50;i++) { > > > > myGrid.addOneLine(['','coucou'+i,'coucou'+i]); > > > > } > > > > > > > > mGrid is supposed to be '90%' of 'mySearchFolder' but it doesn't > seem > > > > to be resized... > > > > > > > > Thanks > > > > Fred > > > > > > > > > > |
|
|
Re: setHeight on grid elementsHello Fred,
This one is fixed. For the other bug with text widget setenable function i'm on it. But it is not simple. It seems to be a IE bugg and i try to find the simple way to fixed it without breaking everything. Cyril --- In rialto-dev@..., "frederic_viollet" <frederic.viollet@...> wrote: > > --- In rialto-dev@..., "frederic_viollet" > <frederic.viollet@> wrote: > > > > Hi Cyril, > > > > I've changed some of my grids to use the autoResizableH property, but > > IE notifies me of new problems here.... > > It raises a 'Argument non valide.' at line 12422 of rialto.js > > It seems that 'widthCalc' is not a valid number. > > > > Here's some code to reproduce the issue. (It only occurs on IE) > > > > myFrame = new > > > > > > ',open:true,dynamic:false,position:'absolute',draggable:false,parent:document.body}); > > myFrame.setVisible(false); > > myTabFolder = new > > > rialto.widget.TabFolder({name:'myTabFolder',top:0,left:0,width:578,height:100,parent:myFrame,widthItem:120,autoResizeTab:false,isClosable:false,draggableItem:false}); > > > > myBrowseFolder = myTabFolder.addTabItem("Browse",true); > > mySearchFolder = myTabFolder.addTabItem("Search",true); > > myLabel = new > > rialto.widget.Label('myLabel',5,5,mySearchFolder,"Contains","libelle1"); > > myContains = new > > > rialto.widget.Text('myContains',20,5,160,'A',mySearchFolder,{autoUp:false,isRequired:false,disable:false,initValue:"*A*",nbchar:100}); > > myGrid = new rialto.widget.Grid({top:45, left:5, height:'90%', > > parent:mySearchFolder, > > > arrHeader:[{title:'',type:"string",width:20},{title:"Col1",type:"string",width:150},{title:"Col2",type:"string",width:330}], > > name:'myGrid', boolPrint:false, switchable:false, > > autoResizableW:false, autoResizableW:true, lineHeight:20}); > > ^^^^^^^^^^^^^^^^^^ > autoResizableH:true > > > > > > > --- In rialto-dev@..., "frederic_viollet" > > <frederic.viollet@> wrote: > > > > > > Hi Cyril, > > > > > > :) Indeed, it works very well with the autoResizableH property > > > true. I didn't even know about this property ;) > > > > > > Thanks > > > > > > Fred > > > > > > --- In rialto-dev@..., "Cyril Balit" <cbalit@> wrote: > > > > > > > > Fred, > > > > > > > > I fixed it.But why don't you set the autoResizableH property > > > > for the grid. It is the best way to make autoResize behavior in > > Rialto. > > > > > > > > Cyril > > > > > > > > --- In rialto-dev@..., "frederic_viollet" > > > > <frederic.viollet@> wrote: > > > > > > > > > > Hi Cyril, > > > > > > > > > > Could you please have a look at the following code. > > > > > It seems that there are some problems on the resizing of Grids > > > > widgets... > > > > > > > > > > myPopup = new > > > > > > > > > > > > > > > > > > > > myTabFolder = new > > > > > > > > > > > > > > > rialto.widget.TabFolder({name:'myTabFolder',top:0,left:0,width:578,height:100,parent:document.body,widthItem:120,autoResizeTab:false,isClosable:false,draggableItem:false}); > > > > > > > > > > myBrowseFolder = myTabFolder.addTabItem("Browse",true); > > > > > mySearchFolder = myTabFolder.addTabItem("Search",true); > > > > > myLabel = new > > > > > > > > > rialto.widget.Label('myLabel',5,5,mySearchFolder,"Contains","libelle1"); > > > > > myContains = new > > > > > > > > > > > > > > > > > > > > myGrid = new rialto.widget.Grid({top:45, left:5, height:'90%', > > > > > parent:mySearchFolder, > > > > > > > > > > > > > > > arrHeader:[{title:'',type:"string",width:20},{title:"Col1",type:"string",width:150},{title:"Col2",type:"string",width:330}], > > > > > name:'myGrid', boolPrint:false, switchable:false, > > > > > autoResizableW:false, lineHeight:20}); > > > > > > > > > > myTabFolder.attach(myPopup); > > > > > myTabFolder.setHeight(myPopup.height-40); > > > > > > > > > > for(var i=0;i<50;i++) { > > > > > myGrid.addOneLine(['','coucou'+i,'coucou'+i]); > > > > > } > > > > > > > > > > mGrid is supposed to be '90%' of 'mySearchFolder' but it doesn't > > seem > > > > > to be resized... > > > > > > > > > > Thanks > > > > > Fred > > > > > > > > > > > > > > > |
|
|
Re: setHeight on grid elementsHi Cyril,
I still have the problem. Here's the "step by step" analysis : line 12485: wH = oHtml.offsetHeight => wH=0 line 12486: if(isNaN(wH)){return 0;} => wH is 0, so isNaN returns false line 12487: if (wH == null || wh == 0) { => true, wH=0 line 12488: wH = parseInt(oHtml.style.height) => PROBLEM!!! wH now is NaN Hope this helps. Fred --- In rialto-dev@..., "Cyril Balit" <cbalit@...> wrote: > > Hello Fred, > > This one is fixed. > > For the other bug with text widget setenable function i'm on it. But > it is not simple. It seems to be a IE bugg and i try to find the > simple way to fixed it without breaking everything. > > Cyril > > > --- In rialto-dev@..., "frederic_viollet" > <frederic.viollet@> wrote: > > > > --- In rialto-dev@..., "frederic_viollet" > > <frederic.viollet@> wrote: > > > > > > Hi Cyril, > > > > > > I've changed some of my grids to use the autoResizableH > > > IE notifies me of new problems here.... > > > It raises a 'Argument non valide.' at line 12422 of rialto.js > > > It seems that 'widthCalc' is not a valid number. > > > > > > Here's some code to reproduce the issue. (It only occurs on IE) > > > > > > myFrame = new > > > > > > > > > > > > ',open:true,dynamic:false,position:'absolute',draggable:false,parent:document.body}); > > > myFrame.setVisible(false); > > > myTabFolder = new > > > > > > rialto.widget.TabFolder({name:'myTabFolder',top:0,left:0,width:578,height:100,parent:myFrame,widthItem:120,autoResizeTab:false,isClosable:false,draggableItem:false}); > > > > > > myBrowseFolder = myTabFolder.addTabItem("Browse",true); > > > mySearchFolder = myTabFolder.addTabItem("Search",true); > > > myLabel = new > > > > rialto.widget.Label('myLabel',5,5,mySearchFolder,"Contains","libelle1"); > > > myContains = new > > > > > > > > > myGrid = new rialto.widget.Grid({top:45, left:5, height:'90%', > > > parent:mySearchFolder, > > > > > > arrHeader:[{title:'',type:"string",width:20},{title:"Col1",type:"string",width:150},{title:"Col2",type:"string",width:330}], > > > name:'myGrid', boolPrint:false, switchable:false, > > > autoResizableW:false, autoResizableW:true, lineHeight:20}); > > > > ^^^^^^^^^^^^^^^^^^ > > autoResizableH:true > > > > > > > > > > > --- In rialto-dev@..., "frederic_viollet" > > > <frederic.viollet@> wrote: > > > > > > > > Hi Cyril, > > > > > > > > :) Indeed, it works very well with the autoResizableH property > set to > > > > true. I didn't even know about this property ;) > > > > > > > > Thanks > > > > > > > > Fred > > > > > > > > --- In rialto-dev@..., "Cyril Balit" <cbalit@> wrote: > > > > > > > > > > Fred, > > > > > > > > > > I fixed it.But why don't you set the autoResizableH property > to true > > > > > for the grid. It is the best way to make autoResize behavior in > > > Rialto. > > > > > > > > > > Cyril > > > > > > > > > > --- In rialto-dev@..., "frederic_viollet" > > > > > <frederic.viollet@> wrote: > > > > > > > > > > > > Hi Cyril, > > > > > > > > > > > > Could you please have a look at the following code. > > > > > > It seems that there are some problems on the resizing of Grids > > > > > widgets... > > > > > > > > > > > > myPopup = new > > > > > > > > > > > > > > > > > > > > > > > > > > > myTabFolder = new > > > > > > > > > > > > > > > > > > > > > rialto.widget.TabFolder({name:'myTabFolder',top:0,left:0,width:578,height:100,parent:document.body,widthItem:120,autoResizeTab:false,isClosable:false,draggableItem:false}); > > > > > > > > > > > > myBrowseFolder = myTabFolder.addTabItem("Browse",true); > > > > > > mySearchFolder = myTabFolder.addTabItem("Search",true); > > > > > > myLabel = new > > > > > > > > > > > > rialto.widget.Label('myLabel',5,5,mySearchFolder,"Contains","libelle1"); > > > > > > myContains = new > > > > > > > > > > > > > > > > > > > > > rialto.widget.Text('myContains',20,5,160,'A',mySearchFolder,{autoUp:false,isRequired:false,disable:false,initValue:"*A*",nbchar:100}); > > > > > > myGrid = new rialto.widget.Grid({top:45, left:5, height:'90%', > > > > > > parent:mySearchFolder, > > > > > > > > > > > > > > > > > > > > > arrHeader:[{title:'',type:"string",width:20},{title:"Col1",type:"string",width:150},{title:"Col2",type:"string",width:330}], > > > > > > name:'myGrid', boolPrint:false, switchable:false, > > > > > > autoResizableW:false, lineHeight:20}); > > > > > > > > > > > > myTabFolder.attach(myPopup); > > > > > > myTabFolder.setHeight(myPopup.height-40); > > > > > > > > > > > > for(var i=0;i<50;i++) { > > > > > > myGrid.addOneLine(['','coucou'+i,'coucou'+i]); > > > > > > } > > > > > > > > > > > > mGrid is supposed to be '90%' of 'mySearchFolder' but it > > > seem > > > > > > to be resized... > > > > > > > > > > > > Thanks > > > > > > Fred > > > > > > > > > > > > > > > > > > > > > |
|
|
Re: setHeight on grid elementsMy fault it is ok now...
Cyril --- In rialto-dev@..., "frederic_viollet" <frederic.viollet@...> wrote: > > Hi Cyril, > > I still have the problem. > Here's the "step by step" analysis : > line 12485: > wH = oHtml.offsetHeight => wH=0 > line 12486: > if(isNaN(wH)){return 0;} => wH is 0, so isNaN returns false > line 12487: > if (wH == null || wh == 0) { => true, wH=0 > line 12488: > wH = parseInt(oHtml.style.height) => PROBLEM!!! wH now is NaN > > Hope this helps. > > Fred > > --- In rialto-dev@..., "Cyril Balit" <cbalit@> wrote: > > > > Hello Fred, > > > > This one is fixed. > > > > For the other bug with text widget setenable function i'm on it. But > > it is not simple. It seems to be a IE bugg and i try to find the > > simple way to fixed it without breaking everything. > > > > Cyril > > > > > > --- In rialto-dev@..., "frederic_viollet" > > <frederic.viollet@> wrote: > > > > > > --- In rialto-dev@..., "frederic_viollet" > > > <frederic.viollet@> wrote: > > > > > > > > Hi Cyril, > > > > > > > > I've changed some of my grids to use the autoResizableH > property, but > > > > IE notifies me of new problems here.... > > > > It raises a 'Argument non valide.' at line 12422 of rialto.js > > > > It seems that 'widthCalc' is not a valid number. > > > > > > > > Here's some code to reproduce the issue. (It only occurs on IE) > > > > > > > > myFrame = new > > > > > > > > > > > > > > > > > > > > ',open:true,dynamic:false,position:'absolute',draggable:false,parent:document.body}); > > > > myFrame.setVisible(false); > > > > myTabFolder = new > > > > > > > > > > rialto.widget.TabFolder({name:'myTabFolder',top:0,left:0,width:578,height:100,parent:myFrame,widthItem:120,autoResizeTab:false,isClosable:false,draggableItem:false}); > > > > > > > > myBrowseFolder = myTabFolder.addTabItem("Browse",true); > > > > mySearchFolder = myTabFolder.addTabItem("Search",true); > > > > myLabel = new > > > > > > rialto.widget.Label('myLabel',5,5,mySearchFolder,"Contains","libelle1"); > > > > myContains = new > > > > > > > > > > rialto.widget.Text('myContains',20,5,160,'A',mySearchFolder,{autoUp:false,isRequired:false,disable:false,initValue:"*A*",nbchar:100}); > > > > myGrid = new rialto.widget.Grid({top:45, left:5, height:'90%', > > > > parent:mySearchFolder, > > > > > > > > > > arrHeader:[{title:'',type:"string",width:20},{title:"Col1",type:"string",width:150},{title:"Col2",type:"string",width:330}], > > > > name:'myGrid', boolPrint:false, switchable:false, > > > > autoResizableW:false, autoResizableW:true, lineHeight:20}); > > > > > > ^^^^^^^^^^^^^^^^^^ > > > autoResizableH:true > > > > > > > > > > > > > > > --- In rialto-dev@..., "frederic_viollet" > > > > <frederic.viollet@> wrote: > > > > > > > > > > Hi Cyril, > > > > > > > > > > :) Indeed, it works very well with the autoResizableH property > > set to > > > > > true. I didn't even know about this property ;) > > > > > > > > > > Thanks > > > > > > > > > > Fred > > > > > > > > > > --- In rialto-dev@..., "Cyril Balit" <cbalit@> > > > > > > > > > > > > Fred, > > > > > > > > > > > > I fixed it.But why don't you set the autoResizableH property > > to true > > > > > > for the grid. It is the best way to make autoResize behavior in > > > > Rialto. > > > > > > > > > > > > Cyril > > > > > > > > > > > > --- In rialto-dev@..., "frederic_viollet" > > > > > > <frederic.viollet@> wrote: > > > > > > > > > > > > > > Hi Cyril, > > > > > > > > > > > > > > Could you please have a look at the following code. > > > > > > > It seems that there are some problems on the resizing of > > > > > > widgets... > > > > > > > > > > > > > > myPopup = new > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > myTabFolder = new > > > > > > > > > > > > > > > > > > > > > > > > > > > > rialto.widget.TabFolder({name:'myTabFolder',top:0,left:0,width:578,height:100,parent:document.body,widthItem:120,autoResizeTab:false,isClosable:false,draggableItem:false}); > > > > > > > > > > > > > > myBrowseFolder = myTabFolder.addTabItem("Browse",true); > > > > > > > mySearchFolder = myTabFolder.addTabItem("Search",true); > > > > > > > myLabel = new > > > > > > > > > > > > > > > > rialto.widget.Label('myLabel',5,5,mySearchFolder,"Contains","libelle1"); > > > > > > > myContains = new > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > myGrid = new rialto.widget.Grid({top:45, left:5, height:'90%', > > > > > > > parent:mySearchFolder, > > > > > > > > > > > > > > > > > > > > > > > > > > > > arrHeader:[{title:'',type:"string",width:20},{title:"Col1",type:"string",width:150},{title:"Col2",type:"string",width:330}], > > > > > > > name:'myGrid', boolPrint:false, switchable:false, > > > > > > > autoResizableW:false, lineHeight:20}); > > > > > > > > > > > > > > myTabFolder.attach(myPopup); > > > > > > > myTabFolder.setHeight(myPopup.height-40); > > > > > > > > > > > > > > for(var i=0;i<50;i++) { > > > > > > > myGrid.addOneLine(['','coucou'+i,'coucou'+i]); > > > > > > > } > > > > > > > > > > > > > > mGrid is supposed to be '90%' of 'mySearchFolder' but it > doesn't > > > > seem > > > > > > > to be resized... > > > > > > > > > > > > > > Thanks > > > > > > > Fred > > > > > > > > > > > > > > > > > > > > > > > > > > > > |
| Free Forum Powered by Nabble | Forum Help |