[flexcoders] Re: A question about stage resizing
Hi Rohit, Let's clear out some few details: You say: 1. The application has two screens , first one being 800 * 600 and second one being 800 * 950. In the html file I have provided the width and height as 100%. Now, when I move from screen 1 to screen 2, I am not seeing a scroll bar. The second screen comes as cropped. Q. What is your actual screen resolution at the time? (I mean the one your system is setup for?) 2. First canvas is of height 600 and second canvas is of height 950. Your screen setup in the first place is Width 800pix by Height 600pix and in the second is Width 950pix by Height 800pix So, what is that you think it's happening? Thanks George --- In flexcoders@yahoogroups.com, Rohit Sharma rohit.sharma1...@... wrote: Hello All, I have a question about the way stage resizing occurs in flex. Please consider the two scenarios :- i) In Flash CS3, I gave my application a stage size of 800 * 950. The application has two screens , first one being 800 * 600 and second one being 800 * 950. In the html file I have provided the width and height as 100%. Now, when I move from screen 1 to screen 2, I am not seeing a scroll bar. The second screen comes as cropped. ii) Whereas in Flex, I provide my application width and height as 100% and html width and height also as 100%. I am using a viewstack whose height and width also is 100% and inside the viewstack I have individual canvas for each screens. First canvas is of height 600 and second canvas is of height 950. In this case I am able to see scroll bars when I move from first screen to second screen. I am not able to see why its not happening in CS3 whereas its happening in Flex. Looking for some pointers. Thanks, Rohit
Re: [flexcoders] Re: A question about stage resizing
Hi George, i) The screen resolution was 1024 * 768 pixels. ii) Width is 800 pixels for both the screens. The height increases from 600 to 950 pixels. the 600 px screen looks fine and the 950 px screen comes cropped. I guess I have answered your questions. Looking for some suggestions. Thanks, Rohit On Fri, Feb 19, 2010 at 8:26 PM, GeorgeB grg_b...@yahoo.com wrote: Hi Rohit, Let's clear out some few details: You say: 1. *The application has two screens , first one being 800 * 600 and second one being 800 * 950. In the html file I have provided the width and height as 100%. Now, when I move from screen 1 to screen 2, I am not seeing a scroll bar. The second screen comes as cropped. * Q. What is your actual screen resolution at the time? (I mean the one your system is setup for?) 2. *First canvas is of height 600 and second canvas is of height 950. * Your screen setup in the first place is *Width* 800pix by *Height* 600pix and in the second is *Width* 950pix by *Height* 800pix So, what is that you think it's happening? Thanks George --- In flexcoders@yahoogroups.com, Rohit Sharma rohit.sharma1...@... wrote: Hello All, I have a question about the way stage resizing occurs in flex. Please consider the two scenarios :- i) In Flash CS3, I gave my application a stage size of 800 * 950. The application has two screens , first one being 800 * 600 and second one being 800 * 950. In the html file I have provided the width and height as 100%. Now, when I move from screen 1 to screen 2, I am not seeing a scroll bar. The second screen comes as cropped. ii) Whereas in Flex, I provide my application width and height as 100% and html width and height also as 100%. I am using a viewstack whose height and width also is 100% and inside the viewstack I have individual canvas for each screens. First canvas is of height 600 and second canvas is of height 950. In this case I am able to see scroll bars when I move from first screen to second screen. I am not able to see why its not happening in CS3 whereas its happening in Flex. Looking for some pointers. Thanks, Rohit
[flexcoders] Re: A question about stage resizing
I think you're comparing apples and oranges here. On the Flex side you're using Canvas inside a ViewStack. I don't have much experience w/Flash CS3, but I think it's safe to assume you're not using these controls on the CS3 side. The ViewStack's dimensions will be that of the initial active child (per the docs). So when you switch to the larger Canvas, the larger Canvas knows there is not enough room and adds the scroll bars. I can't say what's happening in your second case with CS3, but my guess is that the app is being sized to 800x600 and when you switch to the other view the stage or the HTML wrapper is not growing... so you need to either size the CS3 app to 800x950 or build in some logic to add scrollbars when in the larger state. --- In flexcoders@yahoogroups.com, Rohit Sharma rohit.sharma1...@... wrote: Hi George, i) The screen resolution was 1024 * 768 pixels. ii) Width is 800 pixels for both the screens. The height increases from 600 to 950 pixels. the 600 px screen looks fine and the 950 px screen comes cropped. I guess I have answered your questions. Looking for some suggestions. Thanks, Rohit On Fri, Feb 19, 2010 at 8:26 PM, GeorgeB grg_b...@... wrote: Hi Rohit, Let's clear out some few details: You say: 1. *The application has two screens , first one being 800 * 600 and second one being 800 * 950. In the html file I have provided the width and height as 100%. Now, when I move from screen 1 to screen 2, I am not seeing a scroll bar. The second screen comes as cropped. * Q. What is your actual screen resolution at the time? (I mean the one your system is setup for?) 2. *First canvas is of height 600 and second canvas is of height 950. * Your screen setup in the first place is *Width* 800pix by *Height* 600pix and in the second is *Width* 950pix by *Height* 800pix So, what is that you think it's happening? Thanks George --- In flexcoders@yahoogroups.com, Rohit Sharma rohit.sharma1982@ wrote: Hello All, I have a question about the way stage resizing occurs in flex. Please consider the two scenarios :- i) In Flash CS3, I gave my application a stage size of 800 * 950. The application has two screens , first one being 800 * 600 and second one being 800 * 950. In the html file I have provided the width and height as 100%. Now, when I move from screen 1 to screen 2, I am not seeing a scroll bar. The second screen comes as cropped. ii) Whereas in Flex, I provide my application width and height as 100% and html width and height also as 100%. I am using a viewstack whose height and width also is 100% and inside the viewstack I have individual canvas for each screens. First canvas is of height 600 and second canvas is of height 950. In this case I am able to see scroll bars when I move from first screen to second screen. I am not able to see why its not happening in CS3 whereas its happening in Flex. Looking for some pointers. Thanks, Rohit
Re: [flexcoders] Re: A question about stage resizing
Flex has code that will display scrollbars. CS3 does not. On 2/19/10 9:53 AM, Rohit Sharma rohit.sharma1...@gmail.com wrote: Hi George, i) The screen resolution was 1024 * 768 pixels. ii) Width is 800 pixels for both the screens. The height increases from 600 to 950 pixels. the 600 px screen looks fine and the 950 px screen comes cropped. I guess I have answered your questions. Looking for some suggestions. Thanks, Rohit On Fri, Feb 19, 2010 at 8:26 PM, GeorgeB grg_b...@yahoo.com wrote: Hi Rohit, Let's clear out some few details: You say: 1. The application has two screens , first one being 800 * 600 and second one being 800 * 950. In the html file I have provided the width and height as 100%. Now, when I move from screen 1 to screen 2, I am not seeing a scroll bar. The second screen comes as cropped. Q. What is your actual screen resolution at the time? (I mean the one your system is setup for?) 2. First canvas is of height 600 and second canvas is of height 950. Your screen setup in the first place is Width 800pix by Height 600pix and in the second is Width 950pix by Height 800pix So, what is that you think it's happening? Thanks George --- In flexcoders@yahoogroups.com, Rohit Sharma rohit.sharma1...@... wrote: Hello All, I have a question about the way stage resizing occurs in flex. Please consider the two scenarios :- i) In Flash CS3, I gave my application a stage size of 800 * 950. The application has two screens , first one being 800 * 600 and second one being 800 * 950. In the html file I have provided the width and height as 100%. Now, when I move from screen 1 to screen 2, I am not seeing a scroll bar. The second screen comes as cropped. ii) Whereas in Flex, I provide my application width and height as 100% and html width and height also as 100%. I am using a viewstack whose height and width also is 100% and inside the viewstack I have individual canvas for each screens. First canvas is of height 600 and second canvas is of height 950. In this case I am able to see scroll bars when I move from first screen to second screen. I am not able to see why its not happening in CS3 whereas its happening in Flex. Looking for some pointers. Thanks, Rohit -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui