Screen resolution problem for components in a canvas

Hi,
I am developing a Flex application, and I am using more than
one canvases in a single page(with in application tag).
And one canvas has elements like Chart, datagrid, legent
& a label.
Width & Height I gave to canvas and all its elements
(except legend & label) is in percentages
The problem I am facing is that,
when I change the screen resolution, and
when I press F11(full screen) in IE, the all objects except
legend & label are increasing/decreasing, and in some cases
lagend & label are overlapping in the chart & data grid.
Could anybody please advise what I need to follow to
eliminate these kind of problems.
Thanks in advance.
Pavan

Ooooooh, haha my bad, I didn't realize you were talking about
relative positioning on your app.
Here's what's happening. Your component/application is in
ABSOLUTE layout mode, so you can specify coordinates for where
controls and components should be placed. When the size of the
application changes, these coordinates are hard-coded, and they
will always display in the same place, which can case them to run
into components that have been resized to fit the new application
size. Now fixing those numbers is not easy. In fact, I don't know
of any way to make those numbers dynamic so they adjust when the
application size adjusts.
Instead, I suggest using constraints or Vbox/Hbox rather than
hardcoded coordinates. With constraints, you can specify how far
your Legend component is from the edges of the container it's in.
Or, you can use the VBox or HBox so your component is always in the
place it needs to be.
<mx:HBox width="80%" height="50%" top="10" left="10">
<mx:PieChart id="piechart1">
<mx:series>
<mx:PieSeries displayName="Series 1" field=""/>
</mx:series>
</mx:PieChart>
<mx:Legend dataProvider="{piechart1}"/>
</mx:HBox>
In this example, You can see I set top and left to 10. This
means that my HBox will be exactly 10 pixels from the top and left
side of my application (or container, or whatever it's confined
to). The Piechart and Legend fit neatly inside the HBox, and
because it's an HBox, they will be side by side horizontally.
If you need spacing between your chart and legend, you can
always use the Spacer control under Layout.
<mx:HBox width="80%" height="50%" top="10" left="10">
<mx:PieChart id="piechart1">
<mx:series>
<mx:PieSeries displayName="Series 1" field=""/>
</mx:series>
</mx:PieChart>
<mx:Spacer width="100%"/>
<mx:Legend dataProvider="{piechart1}"/>
</mx:HBox>
As you can see, the Spacer control is separating our chart
and the Legend by a width specified. Always use a percentage here,
as you'll run into problems I talked about in my previous post.
100% means the chart and the Legend will be as far away as they can
be while staying within the Hbox container. If you decreased it to
50%, they would only be half as far away.
Hope this helps.
EDIT:
One last example of a pie chart and a Legend within a canvas.
Each object has constraints to the canvas, which lets us put them
whereever we want within the canvas:
<mx:Canvas x="0" y="0" width="80%">
<mx:PieChart id="piechart1" left="10" top="10">
<mx:series>
<mx:PieSeries displayName="Series 1" field=""/>
</mx:series>
</mx:PieChart>
<mx:Legend dataProvider="{piechart1}" right="10"
bottom="10"/>
</mx:Canvas>
From this example, the chart will always line up to be 10
pixels from the top and left of our canvas. The Legend however,
will always line up to be 10 pixels from the right side and bottom
of our canvas. Adjusting the canvas size, the chart size, or the
legend size will give you the desired distance between these two
objects.

Similar Messages

  • EHP1 Upgarde Monitor screen resolution problem in a support message

    Hi Experts,
    We have recently upgraded our Solution manager to EHP1, iam facing a screen resolution problem with 15 inch monitors.
    Our key users have 15 inch monitors to their system and when they try to reply a support message under transaction data-> Overview tab -> reply it is showing only one line for them , due to which they are unable to enter the complete data in it.
    How ever We have found that this does not occur with 17 inc monitors as the required screen resoution 1280* 1024 is possible due to bigger size of the monitor.
    can any one suggest how to make the overview tab visible completely with small resolution monitors.
    Thanks
    Nanda

    >
    Nanda Kishore wrote:
    > Hi
    >
    > There is an note from sap on this issue i couldnt remember the note number which talks about updating your package levell
    >
    > Kindly check this note it was released in SEP 09 a very recent one. this will resolve your probelm.
    SAP Note 1351673      Size of containers not changed for support messages       
    Best regards,
    Ruediger

  • Screen Resolution Problem in Session Method

    Hi
    I want to use session method in BDC. How to resolve screen resolution problem in Session Method?
    Please give me the code or steps regarding this.
    Thanks & Regards
    venkateswararao

    Hi
    U can only run the session with the option Dynpro Standard Size setted.
    In this way the system should be use the same resolution for every situation.
    Max

  • To Resolve Screen Resolution Problem

    Hi
    How to resolve screen resolution problem in BDC Session Method. can't we use ctu_params?
    Thanx & Regards
    venkat

    Hi Venkat,
    Yes, you can use ctu_params.
    This is for Default screen size for CALL TRANSACTION. It signifies the screen size will be constant irrespective of the screen resolution(which can vary for different user). The importance of this lies in programs(module pool) that contain table controls. With default screen size we can control the no of rows in the table control which otherwise may vary depending on the screen resolution.
    DEFSIZE is the Selection as to whether the screens of the called transaction are displayed in the standard screen size. Values "X" (standard size), " " (current size).
    sample.
    data : x_ctu_params type ctu_params.
    To have default screen size, mode and update
      x_ctu_params-defsize = 'X'.
      x_ctu_params-dismode = 'X'.
      x_ctu_params-updmode = 'X'.
    call transaction tscode using  bdcdata
                              options from x_ctu_params
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Message says "screen resolution problem" and says to set higher than 1020 x 600. My screen resolution is set higher. Why am I getting this message all the time I use firefox?

    when I go on to Firefox I keep getting the message that there is a screen resolution problem and it says I should set it higher a than 1020 X 600. But my screen resolution is set higher. It is set at 1360 x 768. Why am I getting this message continuously?

    I've had the problem too... for at least a month or more. It would happen when logging into yahoo mail. But it happens only with firefox... not explorer. I contacted yahoo and he had me first disable add ons... no change... and since it didn't happen with explorer, they said to contact firefox. So I followed the advice of cor-el's post (on this page) and made the text on my page smaller... It did fix the issue.... but, I liked the size of the text the way I had it. So, how do I get it back to that size, and not have that annoying message any longer? thanks!!

  • Anyone experiencing screen resolution problems after latest Mavericks Update?

    Anyone got a blurred monitor after the latest Mavericks Update?
    I am running  Mavericks 10.9.2 on a Mini Mac with a Logic TV/Monitor. Since the latest Mavericks update I no longer have the option in settings to scale to 1600 x900. Since this gives the best picture on my monitor I now have either a blurred screen with large text or a blurred screen with very tiny text. No other options that give a 'normal' display seem available now, after allowing the 'Update'. The update claims to be addressing faults on the MacBook display, which it may well do, but it has also apparently screwed up Mac Mini screen resolution Options for some of us.
    I have reverted back to 10.9.2 and turned off automatic updates, but I can't stay that way indefinitely.
    I've tried to find an e-mail address or phone number to log my complaint to Apple but to no avail. (I guess they would otherwise be inundated with customer complaints so keep that kind of information under wrapps). Anyone got any ideas?

    I'm not having any problems with dual DVI connected Samsung 21.5" monitors in 10.9.3
    What connection (adapter, cable, etc.) are you using..?
    To send Apple Feedback, go to > Apple - Mac OS X - Feedback
    If your looking for better resolution options, try > Mac App Store - Display Menu

  • Yahoo is giving screen resolution error for my Sony Vaio laptop at 1600 x 900

    My laptop display had no screen resolution problem before upgrading to 3.6.10. The error states I should set to 1024 x 768 pixel resolution. This is less than that I already have. I don't understand why this occurs.

    Please see added comments on the question. Its not a zoom issue its all about the new ATT design email and Firefox, I agree with Noah there a bug between the old and the new and firefox only.
    UPDATE:
    I stand corrected. I went back in again and did the reset zoom and it appears to eliminate the error. Problem solved but I am not sure why I never set up zoom and didn't have the problem on any other site. Will it need to be done each and every time I go into that page or is it now corrected?

  • Screen resolution problem in table control

    when i was transfering data in BDC using table control,i got screen resolution problem.
    how to rectify the problem?

    Hi,
    Check this coding.
    WA_CTU_PARAMS type ctu_params.
    WA_CTU_PARAMS-DISMODE = 'N'. "no screen mode
    WA_CTU_PARAMS-UPDMODE = 'S'. "synchronous update
    WA_CTU_PARAMS-NOBINPT = 'X'.
    WA_CTU_PARAMS-NOBIEND = 'X'.
    WA_CTU_PARAMS-DEFSIZE = 'X'. "Default size
    CALL TRANSACTION 'VA01' USING it_bdcdata
    OPTIONS FROM WA_CTU_PARAMS
    MESSAGES INTO it_mesg.
    Default size will play good role in terms of resolution. in one system in table control you can see 10rows, but in others system it will show 20 records. it depends on resolution. but when you set the default size then it will take same (default screen size) in all the systems when you run BDC.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Screen Resolution problem in BDC

    Hi,
    I am writing a BDC for credit memo creation using FB65 transaction in 4.6b version.
    I am facing BDC problems because of screen resolution. Is there a way to determine the number of lines items that may show up in the table control based on the resolution.
    There is no position button available in 4.6b . also page down is not working.
    Could anyone suggest an alternative?

    Hi,
    Use the below syntax...
    CALL TRANSACTION tcode... OPTIONS FROM opt
    ... OPTIONS FROM opt
    Effect
    Allows you to control processing using the values of the componetns of the structure opt, which must have the ABAP Dictionary type CTU_PARAMS. The components have the following meanings:
    DISMODE
    Display mode (like the MODE addition)
    UPDMODE
    Update mode (like the UPDATE addition)
    CATTMODE
    CATT mode (controls a CATT)
    CATT mode can have the following values:
    ' ' No CATT active
    'N' CATT without single-screen control
    'A' CATT with single-screen control
    DEFSIZE
    Use default window size
    RACOMMIT
    Do not end transaction at COMMIT WORK
    NOBINPT
    No batch input mode (that is, SY-BINPT = SPACE)
    NOBIEND
    No batch input mode after the end of BDC data.
    The components DEFSIZE , RACOMMIT, NOBINPT, and NOBIEND always take the following values:
    'X' Yes
    ' ' No
    If you do not use the OPTIONS FROM addition, the following control parameter settings apply:
    DISMODE
    From addition MODE
    UPDMODE
    From addition UPDATE
    CATTMODE
    No CATT active
    DEFSIZE
    Do not use default window size
    RACOMMIT
    Successful end on COMMIT WORK
    NOBINPT
    Batch input mode active ( SY-BINPT = X
    NOBIEND
    Batch input mode remains active after the BDC data

  • Screen resolution problem after i-tunes installed on XP pro

    Just purchased 5th Generation 60Gb for my daughters 16th Birthday which starts in about 14 minutes! Loaded the software on her XPpro service pack 2 laptop. When itunes executed the screen resolution drops to 8 bit! It can be changed in control panel and all works fine. but each time re boot itunes and the problem returns!
    Loaded on my desktop and everything fine also. tried the ms config stuff as per site and immediate problem when ms software disabled. Would seem to be a software conflict and compatability problem. The laptop is a fujitsu which is 2 years old. the older version of i-tunes which she downloaded about a year ago worked ok. Sadly we uninstalled it before installing the new version from the disc. Tried update from the site but it indicates the DC version is the latest.
    Interesting to read some of the problems that flks have had with the ipods. This one seems OK but does have a 'do not disconnect logo which hangs up and doesn't go away. However, if I do disconnect the computer 'burps' at me then all is well and forgotten!
    Oh yes. how do you delete unwanted songs once uploaded? Is there a simple 'delete' button?
    Any thoughts anyone as I've now spent all evening on it and it's her birthday in the morning (8th June)
    thanks in anticipation
    Gwynne (minolta man)

    sorted problem by changing computer! probably softward hardware conflict with iTunes

  • Screen resolution problem - HP computer and LED Cinema Display

    I just purchased an HP Envy Phoenix H9-1330 with Windows 8, and I connected it to my 27" Mac LED Cinema Display, but the resolution is horrible. The highest option in the screen resolution menu is 1280 x 720, and I'm getting the error message "Your resolution is lower than 1024 x 768. Some items might not fit and apps might not open". How do I fix this? What kind of issue is this (Windows 8? Graphics card? HP can't support my monitor? etc...)?
    I just bought another brand new computer, but not an HP, with Windows 8 and I have no problems with the resolution - it looks absolutely beautiful. I want to use my monitor with my HP desktop though.
    Thanks for any help

    Still haven't figured it out....
    BUT I did notice that, on the back of the computer, there are 2 additional DVI connections that are covered with a black cover and screwed in (and they say 'please do not remove'.... I'm asuming it's because they aren't connected to anything? Or maybe they aren't connected to the graphics card?). Is it possible that just my DVI connection is wrong, and I'll need to connect to one of these covered-up DVI inputs instead? But why are they covered up? Do I need to take it in so they can be connected to the graphics card?? Help! I don't want to return this computer, but I will have to if I can't get the resolution fixed.

  • Screen Resolution Problem

    I have an idea pad U310 and every once in a while, I will turn my computer on and the screen will be shifted and stretched. I have tried restarting my computer again to fix it, sometimes it works, but sometimes it doesn't. I have also tried going into my preferences and changing the screen resolution back and forth, but it doesn't go back to normal. It has been like this for over a day now, which is why I'm finally getting around to asking for help. It is very inconvenient because 3/4 of my toolbar is not visible, so I can't see if what time it is, if i'm connected to wifi, how much battery i have left, etc. 
    Hopefully someone else has had this problem and/or there is an easy fix!!

    Hi Ak7534,
    Welcome to Lenovo Community Forums!
    I’m sorry to hear that there is display resolution issue in your U310 Laptop, I suggest you to re-install the display driver from our support website and please let me know with the findings.
    Hope to hear back soon
    Best Regards
    Shiva Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Screen resolution problem in Microsoft Test Manager by Testing Windows Store Apps

    Hi,
    we are trying to perform tests of Windows Store Apps in a remote device (tablet), so as it is explained in:
    http://msdn.microsoft.com/en-us/library/hh405417.aspx
    However, when we take a screenshot or we record a video, it is only shown a little part of the screen, because PC and Tablet screen resolutions are different.
    How could we solve this problem? Any idea?
    Thanks.

    Hi david_vr,
    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • BDC Session method : Screen Resolution Problem

    Hi all,
    I have created a BDC for Sales Order(VA01) and Call Transaction method working perfectly but when Iam creating a session and running in background then the session is ending up with errors.When I processed it in foreground mode I observed that the screen resolution is smaller.I tried checikng the checkbox 'Display standard size' but it is not working.Any Idea how to resolve this issue?
    Thanks & Regards,
    Rock.

    hi...
    These kind of problem come into picture when you go for filling values in table control....
    like filling in 20 number of lines on the screen when you can fill only 10 on the scrren.
    so in such casees what you can do is
    start recoding using SHDB
    do operations and when it come to filling of table control
    fill the first line with value  and then use some option on the application tool bar to go to the next line
    then fill the another line.
    I was getting same problem as your but this way it was done perfectly and u can apply it at number of places.
    or if you dont want to go for the lengthy process just record again and use option on tool bar of SHDB to generate a report for that
    Edited by: Mohit Kumar on Feb 6, 2009 7:40 AM

  • VNC - Screen Resolution Problem on Wake from Sleep

    My question: When it either wakes from sleep or cold boots (NOT on restart for some reason), Mac OS X seems to be confused on the previous resolution of my screen. On wake or cold boot, my main screen SOMETIMES gets set for 800x600 at 56 Hz, according to the display preference pane. I normally run at 1152x870 at 75 Hz. In the past, I have just used the "Detect Displays" command from the display preference pane. This always fixes the screen resolution and restores it to the correct setting.
    This would not be a problem if I didn't have to run VNC. These screen res changes are crashing my VNC server. Here's what I do. I run a VNC server (OSXvnc is the name). I go away. Machine goes to sleep. From machine 'x' I send a wake-on-wan packet (a pain in the butt to figure out for me, BTW). My VNC Machine wakes up. I know it's awake, because I can login to it from remote, using SSH. But the screen res problem happened, and OSXvnc shuts down and won't reinitialize automatically. It says "Screen Resolution Changed - Server Reinitialized", and the "Start Server" button is waiting to be pressed. Of course, this cripples my ability to use VNC.
    For what it's worth, this problem has happened with two different video cards. Granted, the first card was an ATI Radeon 9000 with 64 MB or VRAM and the second card is the same model with 128 MB VRAM. It's virtually the same card, but still, that's two different cards.
    I have 2 CRT displays connected thru adapters (DVI-VGA and ADC-VGA) to the ATI. I'm running all the latest updates for Panther, according to Software Update. This problem has been with me since 10.2.3. I lived with it until it started really getting in the way (VNC crippling & such).
    Any thoughts? -- iJW
    G4 Dual 1 GHz MDD (no FW 800)   Mac OS X (10.3.9)  

    One other item I just discovered. It seems that whether or not my monitors are powered on has something to do with it. When my monitors are on, the problem doesn't happen.
    I like turning them off to save electricity. If I'm using the computer remotely, I already have a monitor. I don't need one powering up at my home that no one's looking at anyway. So the question still stands...
    Anyone?
    G4 Dual 1 GHz MDD (no FW 800)   Mac OS X (10.3.9)  

Maybe you are looking for