Layer relative positon to background, width and hight

Hi All
I have a problem in Photoshop:
I have a layered image and I wanted to know the relative position of the layer to the background and the width and hight. Does Photoshop allow that?
I know you can get the position by moving the mouse cursor to the top left corner of the layer or by converting the layer to a selection.
This is not a solution for me. I need to know the relative position of the layer while moving it with the "Move Tool". And I also need the width and hight of the layer
Is this possible?
Thanks a lot
Edgar

If You set the Ruler Units in the Info Palette Options to percent and select the Layer with the Move Tool and without any selection active hit command T to move the layer content the Info Palette will show the width, height and position (of the upper left corner) of that layer.
The Options Bar Position Numbers unfortunately dont seem to be expressable as percent values and Width and Height can be entered only as percentages of their original values and not as percentages relative to the files size.
Does that help?

Similar Messages

  • How to set Jspx page width and hight programatically ?

    Hi All ;
    i need to browse a jspx page has Different width & hight sizes ;
    Please Can SomeOne tell me ow to set Jspx page width and hight programatically ?
    Regards;

    In that case you need to use JavaScript.
    Resizing the browser window in JavaScript is done by using window.resizeTo(400, 400);
    I
    Thanassis

  • Control width and hight ??

    Can someone plz tell me how I can control width and hight of my printing?? My code:
            public int print(Graphics g, PageFormat pf, int pi) throws
            PrinterException
                if (pi >= 1)
                   return Printable.NO_SUCH_PAGE;
                   Graphics2D g2 = (Graphics2D) g;
                   double height=pf.getImageableHeight();
                   double width=pf.getImageableWidth();
                   g2.translate(pf.getImageableX(), pf.getImageableY());
                   g2.drawString("side :"+(pi+1), (int)width/2,
                   (int)height-g2.getFontMetrics().getHeight());
                   g2.translate(0f,0f);
                   g2.setClip(0,0,(int)width,
                   (int)(height-g2.getFontMetrics().getHeight()*2));
                   g2.setColor(Color.black);
                   paint(g2);
                   return Printable.PAGE_EXISTS;
             public void PrintPage()
                  PrinterJob printJob = PrinterJob.getPrinterJob();
                  printJob.setPrintable(this);
                  if (printJob.printDialog())
                     try { printJob.print(); }
                     catch (Exception PrintException) { }

    ...with PrintJob ...e.g
            Toolkit tk = Toolkit.getDefaultToolkit();
            int [][] range = new int[][]
                new int[] { 1, 1 }
            PageAttributes.ColorType ct = PageAttributes.ColorType.MONOCHROME;
            PageAttributes.OrientationRequestedType ot = PageAttributes.OrientationRequestedType.LANDSCAPE;
            PageAttributes.OriginType ort = PageAttributes.OriginType.PRINTABLE;
            PageAttributes.PrintQualityType pqt = PageAttributes.PrintQualityType.HIGH;
            PageAttributes.MediaType mt = PageAttributes.MediaType.A5;
            int [] printRes = new int[]{1,1,3};
            PageAttributes pa = new PageAttributes(ct, mt, ot, ort, pqt, printRes);
            pa.setPrinterResolutionToDefault();
            JobAttributes jobAttributes = new JobAttributes(1, JobAttributes.DefaultSelectionType.ALL,
              JobAttributes.DestinationType.PRINTER, JobAttributes.DialogType.NATIVE, "file", 1, 1,
              JobAttributes.MultipleDocumentHandlingType.SEPARATE_DOCUMENTS_COLLATED_COPIES, range,
              "\\\\110APPS\\HP5FrontOffice", JobAttributes.SidesType.ONE_SIDED);
            PrintJob job = tk.getPrintJob(dummy, "Print", jobAttributes, pa);
            if (job != null)
                Graphics pg = job.getGraphics();
                System.out.println("Page Dimension : " + job.getPageDimension());
                pg.drawRect(20,20, 240, 120);
                pg.drawString("Hello World", 50, 50);
                pg.dispose();
                job.end();
            }

  • How to Change Content Width and Preserve Background?

    I am using the Formal Theme for my web design.  I want to increase the width of my pages.  I can do this easily on the Photos Page by increasing the Content Width in Inspector/Page/Layout.  However, when I attempt to increase Content Width of my Welcome Page, the background goes white after 754 pixels.  How can I maintain my gray background design and widen the content of my Welcome Page?
    I appreciate your assistance.

    That's because that layout uses a fixed width image file for the page background and it can't be scaled up. You could use the blank page layout of the Formal theme and create your own welcome page from scratch. 
    What I do is take a screenshot of the background like this:
    and use it in a White theme layout as the tiled page background like in this 980 wide demo page: Page 1
    If you like the navbar font and color of the Modern Frame theme it can be modified completly as the White theme can.
    OT

  • Table component - column width and background color?

    Is there any way to set the column width on the table component?  And is there any way to set the background color.  I am using Xcelsius 2008.
    Thanks,
    Karen

    Column width and background can be set in the Excel range and then bind table component to display the range.
    If you change the Column width of background in the Excel range, you need to rebind the display range to update the format.
    Hope this can help!

  • How to resize window keeping relative width and hieght

    Ok as usual I do not want this done for me but I could use a pointer. Simply put I wish to set a JFrame so that when it is resized by the user it holds its relative width and height.
    Could somebody point me to where it is at in the API or a generic sample of code that I can rework? I have read for it but am not finding it so far. Thank you for your patience and any help offered. If it matters I'm doing a fairly simple app in NetBeans not an applet or anything.
    Edited by: Donalds on Apr 8, 2010 5:10 PM

    This was the best I could think of off the top of my head.
    You may want to request this thread be moved to the swing forums for better contributions.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.ComponentEvent;
    import java.awt.event.ComponentListener;
    public class SampleFrame {
        public Dimension lastSize = new Dimension(400,300);
        public JFrame frame;
        public SampleFrame() {
            frame = new JFrame("Sample Frame");
            frame.setSize(lastSize);
            frame.setLocationRelativeTo(null);
            frame.addComponentListener(new ComponentListener() {
                public void componentResized(ComponentEvent e) {
                    Dimension currentFrameSize = frame.getSize();
                    int widthDelta = Math.abs(lastSize.width - currentFrameSize.width);
                    int heightDelta = Math.abs(lastSize.height - currentFrameSize.height);
                    if(heightDelta > widthDelta) {
                        double scaleRatio = currentFrameSize.getHeight() / lastSize.height;
                        currentFrameSize.width = (int) (lastSize.width * scaleRatio);
                    } else {
                        double scaleRatio = currentFrameSize.getWidth() / lastSize.width;
                        currentFrameSize.height = (int) (lastSize.height * scaleRatio);
                    frame.setSize(currentFrameSize);
                    lastSize = currentFrameSize;
                    frame.setLocationRelativeTo(null);
                public void componentMoved(ComponentEvent e) {
                public void componentShown(ComponentEvent e) {
                public void componentHidden(ComponentEvent e) {
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
        public static void main(String[] args) {
            new SampleFrame();
    }

  • Background, screen-width and screen-height

    can you help me a bit guys? how shall I create a movie where
    the background will be always 100% of screen-width and 100% of
    screen-height but the rest of the movie will be not affected by
    screen resolution - it means will be of fixed size.
    example: have a photo in front (200x300px) which needs to be
    always of that size and the background will resize according to the
    screen resoluiton ...
    it is even possible? thanks for any help ...

    Hello,
    Could you please try unchecking the sticky footer option from Site properties and then check if you face the same issue or not?
    Regards,
    Sachin

  • Perspective 3D width and height (stage relative values) in Actionscript

    Hello!
    I have a small square movieclip in Stage, 100x100 width and height.
    I translated it 90º in Y axis. Then, it looks like almost a vertical line.
    I want to know the "Perspective 3D width" and "Perspective 3D height" values (something like 24x120 as the rotated square now looks like almost a vertical line).
    These values are shown in the movieclip properties, in "3D position and view".
    I put an image showing where the values appear. Does anyone know how I access the values via Actionscript?
    Thank you!

    Hello!
    Thanks for the feedback.
    After your answer, I searched for an hour to find the relation between matrix3D, transform, and the width and height properties. But I couldn't find the answer in there (I already had tried to search there before posting here).
    Maybe the answer can be there too, but "por casualidad" now I just found the solution using this piece of code:
    myMc.getBounds(root).height;
    myMc.getBounds(root).width;
    It solved the problem after 3 hours trying to find the solution! \o/
    Thanks for your attention!

  • Relatives width and scrolling

    Hello,
    I just read manual for flex and have got small
    problem/question while playing.
    I am building application with one Panel and one button in
    vertical layout.
    I am setting Panel width to 100%.
    On start I see layout as expected: panel with width for
    entire page (excludding default padding) and button on next line.
    Now I am adding code to button - on click I am adding objects
    to panel, one by one in horizontal line.
    It is also ok, on button press you see that new objects are
    created.
    But, when entire panel is full of objects I expect it to show
    scroller for me, but instead of this panel increases in size
    itself, and this adds scroll to entire application, not panel.
    If I will set panel's width to absolute value (500) - it
    works ok, scroller is shown
    Could anybody explain, how can I make panel be 100% in width,
    and show scrolling for it content?
    my code is attached...
    thanks

    Unfortunately there is no option by which you can change the width of column in list.

  • How to create a map that is larger than the game in width and height?

    hi,
    i wounder how i can create a map(not the design) that is larger than the game in width and height, part of it will appear in the main page and anther part you can move to it after you press the arrow symbol, but the map is just one image so i want put it in line and out line the game page, and the out line part includes buttons and symbols the player can use, but it will be in line and the other part will be out line when you press the left arrow or the down arrow, how i can do that?
    and is that possible to animate it so when the player press the arrow, will give it action to start the animation in one sec, i know how to animate it if that possible but i don't know which code i will use for the mouse click with the arrow symbol, and how to use the same code in the same symbol to start anther animation depending on which part of the map is on?

    I don't know a lot about mask and masked layers and how to work with the normal layers beside i will use some 3D graphics but not in the background, i will explain all this to you to be more clearly.
    first i am using action script 3.0
    close ex,
    you have 2d map"image"  900*300 pixel.
    this image contains some 2d symbols when you click will go to anther normal map (anther normal layer) so they must appear.
    your game 320*320 px, and the place the map will show on 300*300, and there's basics objects will be in most pages including the page that show the map so i don't know a lot about how this will work with mask layers.
    so you can only see the left side of the map image and what it contains, while there's two arrows one to the left and one to the right there's three cases here,
    first when it show the left side(start from x:0 to x:300), the left arrow will not active when you press and the right arrow will start an animation that make the map image move to the mid side in one sec when you press.
    in mid side (start from x:301 to x:600) the same left arrow will active when you press to send you back to the left side while the same right arrow will be active to send you not to the mid side but to the right side,
    when moved to the right side the same left arrow will be active to send you to the mid and the right will not active when you press and depending on that,
    first how to make the large image appear with the three sides in the same place without effecting the other objects "like disappearing them" ?
    and the codes i need in the same left or right arrow symbol to make different actions with the same symbol when clicked depending on which part of the map is on.

  • Background color and float problems

    Hello all,
    I am having a problem with the background color and the left
    float for a navigation sidebar (also with the background color for
    the footer). The body color is set to gray, and the main page is
    centered with a white background. I set up the pages using mostly
    CSS, with a few tables where they seemed necessary. I set up the
    navigation side bar as a div with a green background and a left
    float. The footer is set up as a div with a green background. All
    text is aligned left.
    When I preview in Safari, everything looks as expected.
    In Firefox and IE5: The background color of the navigation
    sidebar has white showing up behind the type that are not links
    (e.g., mailing address and subheads). The div does not float all
    the way to the left edge of the page. The background color of the
    footer should be green but shows up as white. I validated the code
    in DW, and it reports no problems (at least, it checked out after I
    made a few corrections).
    I am not that concerned about the background color for the
    footer -- it is either all there (in Safari) or not there at all
    (in Firefox and IE). But I would like to see if I can make it show
    up. For the navigation sidebar, would putting it in a table cell
    make it work correctly in Firefox and IE?
    Regarding the left float issue for the nav sidebar IE5: At
    the top of the page, my logo banner (it's placed in a div) shifted
    to the right (in IE only). When I added a left float to the banner,
    the banner lines up fine with the rest of the page, but a white
    margin appears along the left side of the entire page.
    None of my pages are uploaded to a web host yet. This is my
    first website. I am working in DW8 on a Mac.
    Thanks in advance,
    Kathy (Daylilybud)

    Mista,
    Here is my home page based on the template I sent previously.
    Thanks in advance!
    Kathy (Daylilybud)
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    <title>Loon Song Gardens: Home Page</title>
    <link href="externalcss/informationcss.css"
    rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    a {
    font-weight: bold;
    -->
    </style></head>
    <body>
    <div id="container">
    <div id="banner"><a name="topofpage"
    id="topofpage"></a><img
    src="graphics/thumbnailsheader/lsgheadergraphic_760x110.jpg" alt=""
    width="760" height="110" />
    <div id="heading"><img
    src="graphics/thumbnailsheader/hotcolorstrip760.jpg" alt=""
    width="760" height="76" /></div>
    <div id="navsidebar">
    <p class="navsidebarnormal">Loon Song Gardens,
    LLC<br />
    10910 109th Ave N<br />
    Champlin MN 55316<br />
    763.422.0015</p>
    <ul class="ulnavsidebar">
    <li class="ulnavsidebarli"><a
    href="../donotuse/indextest4.html">Homepage</a></li>
    <li class="ulnavsidebarli"><a
    href="about_loonsonggardens/aboutus.html">About
    Us</a></li>
    <li class="ulnavsidebarli"><a
    href="about_loonsonggardens/our_daylilies/aboutourintroductions.html">Our
    Introductions</a></li>
    <li class="ulnavsidebarli">Seedlings</li>
    <li class="ulnavsidebarli">Photo Gallery</li>
    <li class="ulnavsidebarli"><a
    href="pricelist2008/pricelist2008ab2.html">2008 Price
    List</a></li>
    <li class="ulnavsidebarli"><a
    href="pricelist2008/lsgorderform2008website.pdf">Order Form
    (PDF)</a></li>
    <li class="ulnavsidebarli"><a
    href="about_loonsonggardens/shippingandterms.html">Shipping and
    Terms</a></li>
    <li class="ulnavsidebarli"><a
    href="about_loonsonggardens/visitus.html">Visit
    Us</a></li>
    <li class="ulnavsidebarli"><a
    href="mailto:[email protected]">Email Us
    </a></li>
    </ul>
    <p> <span class="navsubheadbold">ABOUT
    DAYLILIES</span> </p>
    <ul class="ulnavsidebar">
    <li class="ulnavsidebarli"><a
    href="about_daylilies/howtoplant.html"
    class="ulnavsidebarli">How to Plant</a></li>
    <li class="ulnavsidebarli"><a
    href="about_daylilies/growingtips.html"
    class="ulnavsidebarli">Growing Tips</a></li>
    <li class="ulnavsidebarli"><a
    href="about_daylilies/howtodivideadaylily.html"
    class="ulnavsidebarli">How to Divide</a></li>
    <li class="ulnavsidebarli"><a
    href="about_daylilies/moreaboutdaylilies.html"
    class="ulnavsidebarli">More About Daylilies</a></li>
    </ul>
    <p> <span class="navsubheadbold">OTHER
    LINKS</span> </p>
    <ul class="ulnavsidebar">
    <li class="ulnavsidebarli"><a href="
    http://www.daylilies.org"
    class="ulnavsidebarli">American Hemerocallis <br />
    Society (AHS)</a></li>
    <li class="ulnavsidebarli"><a href="
    http://www.daylilies.org/ENews.html"
    class="ulnavsidebarli">AHS Daylily E-News <br />
    (FREE SUBSCRIPTION) </a></li>
    </ul>
    </div>
    <div id ="content">
    <h1>Welcome to Loon Song Gardens! </h1>
    <ul>
    <li class="contentli">We specialize in northern-hardy
    daylilies (<em>Hemerocallis</em>).</li>
    <li class="contentli">Our daylilies are field
    grown.</li>
    <li class="contentli">We offer competitive
    prices.</li>
    <li class="contentli">Loon Song Gardens, LLC, is a
    licensed and inspected nursery.</li>
    <li class="contentli">We are an American Hemerocallis
    Society Display Garden. </li>
    <li class="contentli">Visitors are welcome by
    appointment.</li>
    </ul>
    <p>Loon Song Gardens is a specialty daylily nursery
    and the home of Mike and Kathy Lamb in Champlin, Minnesota, USDA
    hardiness zone 4. We grow over 1,000 named daylily cultivars in a
    wide range of colors, sizes, and forms, from classics to cutting
    edge. If you are looking for northern-hardy daylilies, check with
    us! We will gladly share our growing experiences with you so you
    may have the best possible success.Kathy hybridizes daylilies and
    has introduced four daylily cultivars to date. For details, see
    <a
    href="about_daylilies/about_loonsonggardens/our_daylilies/ourintroductionsmain.html">Our
    Introductions </a> and <a
    href="about_daylilies/about_loonsonggardens/our_daylilies/seedlingsandfutures.html">Seedl ings.</a></p>
    <h2>Are you new to the world of daylilies? </h2>
    <p>Learn more about daylilies! Use the links in the
    left sidebar to find answers to your questions. Check back for
    updates. If you have questions, send us an email, and we will try
    to help.</p>
    <h2>To place your order</h2>
    <p class="contentp">Use our on-line <a
    href="about_daylilies/pricelist2008/pricelist2008v215ab.htm">2008
    Price List </a> to make your selections. We are a small
    nursery and quantities are limited, so it is best to confirm your
    order via email.</p>
    <p class="contentp">To place your order, print the
    <a
    href="about_daylilies/pricelist2008/lsgorderform2008website.pdf">Order
    Form (PDF)</a>, fill it in, enclose payment by check or money
    order (payable to Loon Song Gardens, LLC), and mail to:</p>
    <blockquote>
    <p class="contentp"> Loon Song Gardens<br />
    10910 109th Ave N <br />
    Champlin MN 55316</p>
    </blockquote>
    <p>We ship at least a double-fan size plant unless
    otherwise noted in our listings, we include a bonus for orders of
    at least $35, and we guarantee that our plants are true to
    name.</p>
    <h2>Visit Loon Song Gardens</h2>
    <p>Loon Song Gardens is an official American
    Hemerocallis Society (AHS) Daylily Display Garden, open by
    appointment. If you will be in the Minneapolis area and would like
    to stop by, please contact us to schedule a time. For details,
    click on <a
    href="about_daylilies/about_loonsonggardens/visitloonsonggardens.html">Visit
    Us</a>. </p>
    <h2>Join the American Hemerocallis Society
    (AHS)</h2>
    <p>The AHS website includes lots of great daylily
    information, so be sure to take a look. </p>
    <p>Join AHS today and take advantage of the voucher
    program! New AHS members receive a voucher good for at least $25.00
    toward daylilies from participating vendors (a minimum purchase may
    apply). To join AHS, go directly to <a href="
    http://www.daylilies.org/AHSmemb.html">AHS
    Membership</a>.</p>
    <p>Kathy is currently on the AHS Board of Directors as
    Chair of Publicity and Media Relations. She produces <em>AHS
    Daylily E-News,</em> an e-newsletter free for AHS members and
    non-members alike. To subscribe, click on <a href="
    http://www.daylilies.org/ENews.html">AHS
    Daylily E-News</a>. </p>
    </div>
    <div id="topofpage"><a href="#topofpage">Top of
    Page</a></div>
    </div>
    <div id="footer"><!-- #BeginLibraryItem
    "/Library/footer1.lbi" -->
    <p class="footer">&copy; 2008 Loon Song Gardens,
    LLC. All rights reserved. | Loon Song Gardens, LLC | 10910 109th
    Avenue North | Champlin MN 55316<br />
    <a href="mailto:[email protected]">Email
    us</a>| | 763.422.0015 | Fax 763.422.0131 | This page was
    last updated
    <!-- #BeginDate format:Am1 -->March 30, 2008<!--
    #EndDate -->
    </p>
    <!-- #EndLibraryItem --></div>
    </div>
    </body>
    </html>

  • Positioning a layer relative to a table

    Hi,
    I've created a site based on a table that is centered in the
    browser window.
    I want to add a small layer to accommodate a dropdown menu -
    which should be positioned just under one of the navbar buttons.
    I know I need to somehow position the layer relative to the
    table - but I'm really bad at code. Can anyone help?
    (The navbar is actually a seperate file called 1nav.php that
    is 'included' in the main file called 'template.php'. - in case
    that makes a difference.)
    You can see the site so far at:
    www.mywebspinners.com/SR/template.php
    Or just the navbar file at:
    www.mywebspinners.com/SR/1nav.php
    Thanks,
    - Greg

    This illustrates nicely some of the 'one-way' problems that
    one can get into
    by using only Design view (i.e., things that can happen that
    you CANNOT get
    yourself out of), and why it's always important to acquire
    some familiarity
    with HTML and CSS to work at all productively with
    Dreamweaver (or any HTML
    authoring system, for that matter).
    Osgood beat me to the punch on his recommedation, and I think
    it may be the
    cause - but I'm waiting to see the results before posting
    further.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Osgood" <[email protected]> wrote in
    message
    news:[email protected]...
    > GregInFrance wrote:
    >> Hi - sorry - I have no idea where all these things
    ought to go. I just
    >> use the 'Design' view in Dreamweaver -i never
    actually write code. Is
    >> the code you included in your last post how mine
    should look - as I can't
    >> see a difference. Sorry to be such a pain.
    >
    >
    > You need to go into code view. Find all of the code
    below, select it, cut
    > it then paste it directly before the closing
    </head> tag. If your relying
    > on design view then give up now because its not going to
    happen.
    >
    > <style type="text/css">
    > <!--
    > #Dropdown {
    > position:absolute;
    > left:306px;
    > top:115px;
    > width:231px;
    > height:91px;
    > z-index:1;
    > visibility: hidden;
    > }
    > -->
    > </style>
    >
    > <script type="text/javascript">
    > <!--
    > function MM_reloadPage(init) { //reloads the window if
    Nav4 resized
    > if (init==true) with (navigator) {if
    >
    ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    > document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
    > onresize=MM_reloadPage; }}
    > else if (innerWidth!=document.MM_pgW ||
    innerHeight!=document.MM_pgH)
    > location.reload();
    > }
    > MM_reloadPage(true);
    >
    > function MM_findObj(n, d) { //v4.01
    > var p,i,x; if(!d) d=document;
    >
    if((p=n.indexOf("?"))>0&&parent.frames.length) {
    > d=parent.frames[n.substring(p+1)].document;
    n=n.substring(0,p);}
    > if(!(x=d[n])&&d.all) x=d.all[n]; for
    (i=0;!x&&i<d.forms.length;i++)
    > x=d.forms
    [n];
    >
    for(i=0;!x&&d.layers&&i<d.layers.length;i++)
    > x=MM_findObj(n,d.layers.document);
    > if(!x && d.getElementById)
    x=d.getElementById(n); return x;
    > }
    >
    > function MM_showHideLayers() { //v6.0
    > var i,p,v,obj,args=MM_showHideLayers.arguments;
    > for (i=0; i<(args.length-2); i+=3) if
    ((obj=MM_findObj(args
    ))!=null)
    > { v=args[i+2];
    > if (obj.style) { obj=obj.style;
    > v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    > obj.visibility=v; }
    > }
    > //-->
    > </script>
    > <link href="rs-styles.css" rel="stylesheet"
    type="text/css" />
    >

  • Problem of PCI express link width and speed

    hello,
    I instantiate the pci express core v1.7 into a pci express endpoint and the core was configured as GEN I x8 or GEN II x4. By using the example design Xilinx offered in the ipcore dir, I could read and write device by PIO mode.
    However, when I check the device’s link width and speed by using lspci –vvvv in Linux, I found that no matter what configurations I set, the device link is always trained as GEN I x1, which means the throughput of device, reduce 8 times. May the most important problem is that all logic in the user layer upon transaction layer are written at 250MHz, and if link width and speed are limited 2.5G/T and x1, I need to change user logic circuit which is a huge work.
    So my question is how to change the PCI express link width and speed in OS side, or I need to change a new motherboard?
    (I guess it related with motherboard, and I check that the PCI express slot in motherboard support GEN II X16. Another issue, when I insert a PCI express GEN II x8 device, the device is also trained as GEN I x1).
    lscpi -vvvv
    01:00.0 RAM memory: Xilinx Corporation Device 6018
    Subsystem: Xilinx Corporation Device 0007
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0, Cache Line Size: 64 bytes
    Interrupt: pin A routed to IRQ 16
    Region 0: Memory at dfcff800 (32-bit, non-prefetchable) [size=2K]
    Region 1: Memory at de000000 (32-bit, non-prefetchable) [size=16M]
    Capabilities: [40] Power Management version 3
    Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-)
    Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
    Capabilities: [48] MSI: Enable- Count=1/1 Maskable- 64bit+
    Address: 0000000000000000 Data: 0000
    Capabilities: [60] Express (v2) Endpoint, MSI 01
    DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s unlimited, L1 unlimited
    ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
    DevCtl: Report errors: Correctable- Non-Fatal+ Fatal+ Unsupported-
    RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
    MaxPayload 128 bytes, MaxReadReq 512 bytes
    DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
    LnkCap: Port #0, Speed 2.5GT/s, Width x8, ASPM L0s, Latency L0 unlimited, L1 unlimited
    ClockPM- Surprise- LLActRep- BwNot-
    LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
    ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
    LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt-
    DevCap2: Completion Timeout: Range B, TimeoutDis-
    DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
    LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-, Selectable De-emphasis: -6dB
    Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
    Compliance De-emphasis: -6dB
    LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete-, EqualizationPhase1-
    EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
    Capabilities: [100 v1] Device Serial Number 00-00-00-01-01-00-0a-35
    Kernel driver in use: card

    I also have this issue of the user_link_up is high and everything looks good but the LnkSta widht is 1x. did you ever get any guidance about this?
     

  • Qs about call FM in background task, and monitoring in SM37.

    Hi, guys, i got a question here, if I call a FM using addition "in background task" in a Z program, does this mean the FM process is running in background? And can I monitor my task in sm37?
    i've tried to do that, the FM was successfully proceeded, but I cannot see anything related to that task in SM37 under mine user ID.

    No, you cannot see that in SM37.
    What it means is that the function is being executed in a seprated thread and the program that called the function will continue the execution without waiting for the function finish execution, that means the function is called in a synchronous manner.
    Regards,
    Ravi
    Note : Please mark all the helpful answers

  • Controlling background width/height in 3.5

    Hello all, I'm stuck on a problem I've been trying to solve in 3.5.  I've seen a few solutions in 4.0 and above, but that doesn't help my situation.
    I want the application background image to maintain its aspect ratio, while still being as large as possible in the screen.  It should update as I stretch and resize the screen.  I can't find a way to do this in CSS or with the MXML.  I feel like the solution might have to do with overloading updateDisplayList(), but I just can't figure out what I need to do in there. 
    Thanks in advance!

    After re-reading my post, I feel like additional clarity is needed. 
    As an example, if i have a png for my background that is 800X600, It should fit perfectly in a 800X600 window.  Then, if I shrink the window down horizontally, the image should shrink down as well, but maintain a 4:3 aspect ratio, leaving empty space at the top and bottom. 
    My problem is:  I do not know how to manually control the width and height of the background image.  the backgroundsize style seems to scale uniformly with width AND height, so I cannot control them individually.

Maybe you are looking for