Welcome! Log In Create A New Profile

Advanced

Dynamic Cell Size in webdev

Posted by Glenn Stretton 
Glenn Stretton
Dynamic Cell Size in webdev
December 18, 2008 04:28PM
Hi,

When creating a webpage how can I make the titlebar cell resize according to the browser/screen size.

Thanks in advance

Glenn
Fabrice Harari.pcs.crosspost
Re: Dynamic Cell Size in webdev
December 18, 2008 05:06PM
Hi Glenn

Select the cell and look at its right and down borders... You'll see the
size in either pixels or % of browser width. Just change the width to
100% and it will increase with the browser, IF other object do not block it

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

More information on [www.fabriceharari.com]


Glenn Stretton wrote:
> Hi,
> When creating a webpage how can I make the titlebar cell resize according to the browser/screen size.
> Thanks in advance
> Glenn
>
Message forwarded from pcsoft.us.windev
Jaime Fernandez
Re: Dynamic Cell Size in webdev
January 10, 2009 11:22AM
This is the solution via designer, but How to change the size of a Cell via programming?
When assigning new width, for example, the property changes but it is not visibly.
Any idea?
ocakici
Re: Dynamic Cell Size in webdev
February 02, 2009 07:59AM
You can set cell's width when the document finishes loading ((Load process of page) - or document.body.onload)
Then,
you can simply do: cell..width = JSProperty("document.body","scrollWidth")

or you can create a browser procedure in Javascript, and make it a generic utility function if you are gonna use it on multiple pages. Pass the control alias as the param:

function resizeCell(obj)
{
if (typeof obj == 'string') obj = document.getElementById(obj);
obj.style.width= document.body.scrollWidth;
}
Jaime Fernandez
Re: Dynamic Cell Size in webdev
February 02, 2009 10:07AM
Hi,
Good solution!
I don't know why, but when I tried with WL then property receive the new value but its dimensions didn't change, perhaps the cell was defined as "no stacable".
After you answer I have try again and now works Ok, cell..width = 100.

Thank you,
Regards
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: