The line in the middle of a container

This horizontal line is supposed to be in the middle of a container:

     <s:Line xFrom="0" 
               xTo="100"
               yFrom="{this.width * .5}"
               yTo="{this.width *.5}">
          <s:stroke>
               <s:SolidColorStroke weight="8" />
          </s:stroke>
     </s:Line>

But yFrom and yTo are set to 0 and are not being updated by linking.

The line is set in the skin of the component.

How can I draw a line in the middle of a container?

I'm sure it's related to how traits are measured on a GraphicElement.

See this post for an explanation:

http://flexponential.com/2010/03/14/measuring-a-GraphicElement-with-a-stroke-in-a-group/

Tags: Flex

Similar Questions

  • How to return to my original blog design when after I updated firefox my top border changed to only go to half way through the page and a line now headed down in the middle of my blog? On other computers, not just mine.

    I would like to just my blog back to its original format without line in the middle of the page and the top edge across the entire page and not only at half way. This occurred immediately after I've upgraded to Firefox 6. The format of my blog is normal on the other computers, but not normal on my computer. Thank you.

    Hello Cor - el, Yes, it's my site. When I looked at my site on another computer this computer used Internet Explorer for the web, so I thought it was normal. Thank you for the information on 2/26. I have passed your info to my friend who will try to solve the problem. I'll let you know when she solved it. BMB

  • HP Pavilion Notebook 14-n271tx: a vertical line in the middle of my screen

    Hey there, I would like to know more about the vertical line in the middle of the screen of my laptop. There will be a white vertical line in the middle of my screen sometimes but when I adjust the position of my laptop, it disappears. Can I know why is it happening? Is it because of problems in the system or what? How can I solve this problem? What I send to HP customer Service to solve this problem?

    Hi @DustMidnight85

    Welcome to the HP Forums!

    This is a wonderful place to find answers and information!

    You have the best experience in the HP forum, I would like to draw your attention to the Guide of the HP Forums Learn how Post and more

    I understand that you have a problem with the display, but if you change the position of the screen, it disappears.

    Here is a link to the display quality problems that can help.

    As you said it disappears when you reposition the screen, that the connection cable can become loose or damaged opening and closing the display.

    Here is a link to laptop HP Pavilion 14, HP Pavilion 14 Touchsmart laptop, HP Pavilion 14 Touchsmart Ultrabook, maintenance and Service of Guide. Chapter 4 page 36 has removal instructions that can help you check for this problem.

    If your laptop is under warranty or you wish to help please contact HP support for assistance.

    Please contact our technical support at 800-474-6836. If you do not live in the United States / Canada region, please click on the link below to get a number of assistance for your region.

    World wide phone holder

    Good luck!

  • NB 550 d - 11 d - horizontal line in the middle of my screen

    I have a toshiba NB 550 d - 11 d a few weeks ago.
    It has been very slow since the beginning.

    Then, the fan has started to be marketed all the time and now I see a horizontal line in the middle of my screen.

    Is that what I can do before I apply for coverage?

    Thank you
    ISA

    Hello

    I fear that the problem is related to a hardware problem m.
    The internal display is affected or the graphics chip on the motherboard is faulty.
    In both cases the hardware must be replaced
    Therefore, you should get in touch with a partner service is available in your country for this problem
    I hope that your warranty is valid

    Good luck

  • Satellite M70-151 - line gray portrait in the middle of the screen

    Hello

    Since a few days of view, I have a problem with my laptop, Satellite M 70-151.

    There is a vertical line (dark gray) in the middle of the screen... It appeared when I used microsoft word.
    At first I thought that it is just an error display or something... but after a reboot, it was still there... so I tried reinstalling display drivers...
    other drivers to install the display, but it did not help anything. The line is not as visible on a screen... It is always in the same place on the screen

    so I think that it cannot be that the material... the screen itself, but I was always very carefully with Notepad.

    my warranty ran out 5 months ago... do anyone know what I can do now?
    Don't know how to fix :(

    (sry for my bad English)

    In my opinion, it's certainly a hardware problem. I am not sure, but it must be malfunction of the display. To confirm this test with external monitor. If the desktop without this gray line certainly display problem.

    How to solve it? You can live with it or the display must be exchanged. Also, there are not many possibilities. You can contact the authorized service provider to see how much the repair will be fresh, or you can try to view an opportunity (e.g. eBay). The second option is cheaper but without maintenance manuals, you should not disassemble the laptop on your own.

  • The letters on my keyboard on the screen are passed. that is the A is now in the first row of letters, the M is in the middle line. How can I change?

    The letters on my keyboard on the screen are passed. that is the A is now in the first row of letters, the M is in the middle line. How can I change? I don't know how he has changed as a first step.

    Try the settings > General > keyboard > English > typing on the QWERTY keyboard. -AJ

  • HP officejet 6500 printer - printed lines of sepia / orange in the middle of printing a color image

    I have a HP officejet 6500 started in the middle of a photo in sepia color printing lines color / orange. Ran test from the printer and it says that everything is good. All images are now sepia/orange. The color is my best description. I need help please.

    Hello

    I suggest you to follow these steps and check if that helps:

     

    Method 1:
    Try to run the printer Troubleshooter and check that if it helps, here is the link:
    http://Windows.Microsoft.com/en-us/Windows7/open-the-printer-Troubleshooter

    Method 2:
    Try to run the below fixit and check if this may help:
    http://Windows.Microsoft.com/en-us/Windows7/why-cant-I-print

    It will be useful.

  • Black Line through the middle of the screen, is growing day by day.

    Hello

    I was wondering if you would be able to help me solve this problem.

    My HP Omni 120-1034 desktop PC was working fine until there is a line thin lack 2 weeks appeared in the middle of the screen horizontally past.  It's getting darker and larger as the days go by. I just reinstalled the graphics driver, but which is not helping.

    Help, please. Thank you

    Sounds like the display panel which as you can imagine, is hard to get an all-in-one. Certainly, on a laptop we would connect to an external monitor, but yours doesn't have an external monitor port. Replacement screens are about $130 on eBay.

    http://www.eBay.com/ITM/new-HP-Omni-Pro-110PC-20-LCD-screen-Assembly-widescreen-HD-CCFL-M20001-L03-/171258040164?PT=US_Laptop_Screens_LCD_Panels&hash=item27dfc64f64

    If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

  • HP envy smart-touch j 15: display vertical line appeared in the Middle

    How can I solve vertical line has appeared in the middle and color of windows seems also dimmed

    Dear customer,

    Welcome and thanks for posting your question on the Forum of Support HP

    It seems that you are having problems with your laptop display. We will surely help you with this problem

    1. Please check if the display screen / laptop showing lines even in BIOS or not

    Note: Turn on the computer laptop and typing on the F10 key to access the BIOS

    2. Please tilt the laptop display slowly to the back and the front, check and check

    If the lines are visible to all the corners of the screen

    3 Please connect an external monitor to your laptop and check if the lines appear even on the

    external monitor

    Hope this helps, for other queries in response to the post and feel free to join us again

    * Click on Thumbs Up white on the left to say thank you *.

    Make it easier for others to find solutions by checking a response "Accept as Solution" if it solves your problem.

    Thank you

    GBL84

    I'm not an employee of HP

  • document feeder prints a black line down the Middle

    document feeder prints a black line in the middle of the page

    Yes, the warranty is still valid! I bought the extended warranty for the replacement. So I guess I will contact HP for a new printer.

    Thank you very much for your help!

    Ted

  • I'm getting a vertical line in the middle of the page when I use the ADF on my Officejet Pro 8500 a but

    HP Officejet Pro 8500

    Windows XP

    No error message

    No changes to the system

    Scan using the ADF puts a vertical line in the middle of the scanned page.  This does not happen when I scan from the flat screen

    Brian, this is going to be a pretty easy fix. What you're going to need to get is a lint cloth (as a microfibre cloth or a filter coffee) and get just a wet touch. Then, open the top of your printer to reveal the glass. There are two sections, one large, and that is a thin strip of glass on the left side. If the line makes its appearance in the ADF scans/copies only - clean this thin section with a moist, lint cloth.

    This should help you!

    More information here: https://www.youtube.com/watch?v=SPdwUKnrDgM

    Let me know and have a great day!

  • I have a white line in the middle of my screen

    Computer was working fine, then all of a sudden a white vertical line directly in the middle of the screen that goes from the edge of the screen on the top until the end of the screen on the buttom.

    Hello

    Sometimes reseating the video cable will solve this problem. If it is a unit of office, you can also try shutting down and reinstalling the video card.

    To detect if the problem is with the monitor or video card, try connecting another monitor. If the problem is still present, it is the card. If this isn't the case, then the monitor must be replaced.

    Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • my printer is copying with a black line in the middle of the page

    My printer has just started the copy with a black line in the middle of the page.  Any ideas what the problem is and how to fix it?

    I have a Photosmart C7280 all-in-one printer.  Thank you!

    This document should help:

    Scan quality

  • HP pavilion dv7-6b55dx - line quarter inch Horizontal gray in the middle of the screen

    Recently bought a HP pavilion dv7-6b55dx notebook from Best Buy.  Recently, the screen started to have a quarter inch gray horizontal line in the middle of it.  Gray line has more grey lines inside.  6 month warranty just expired.  Y at - it 'easy' for this solution or the screen is just broken?

    It is usually the screen.  LaptopScreen.com has replacements for usually less then $60, which includes shipping. To be sure that it is the screen, connect an external monitor and make sure that there is no grey lines on the external monitor.  If there is, then it is assumed the video chip. Move fourth screen of the laptop and see if the lines disappear.  If they do, then it is the cable from the motherboard to the screen.

  • Text in the middle of the container

    {Of container
            
            
            
    layout: {StackLayout}
    direction: LayoutOrientation.LeftToRight
            
    }
    background: Color.create ("#ffff8400")
    horizontalAlignment: P
    {Label
                                
    Text located with the dynamic translation and locale update support
    text: qsTr ("next generation Banking")
    textStyle.base: SystemDefaults.TextStyles.TitleText
    textStyle.color: Color.create ("#fffffcf6")
    }
                     
    }

    through this I get the text in the middle of the page. I would however like to container to the entire width of the screen... and the text in the middle. so that the background everything is orange...

    This alone places container in the middle of the page. I want container be the entire width of the screen... and text container.so environment this level took everything...

            Container {
                preferredWidth: Infinity
    
                background: Color.create("#ffff8400")
    
                Label {
                    horizontalAlignment: HorizontalAlignment.Center
    
                    // Localized text with the dynamic translation and locale updates support
                    text: qsTr("Next Generation Banking")
                    textStyle.base: SystemDefaults.TextStyles.TitleText
                    textStyle.color: Color.create("#fffffcf6")
                }
    
            }
    

Maybe you are looking for