Incorrect bounding rectangle height after styling

I am experiencing with incorrect bounding rectangle height when I set the background color for text in RichEditableText field. I have actually custom styled the RET field with following:
lineHeight: 49;
baselineShift: 11;
firstBaselineOffset: lineHeight;
verticalAlign: top;
When I try to change the background color for certain range of text it doesn't cover the entire line height, although the selection covers the entire line height. Is there any way to increase the height of bounding rectangle or any other workaround to this please?

1. I am able to return the TextFlowLine for each line in para but I have seen that some TextLine are marked as INVALID due to which I am unable to get their atom locations. I have tried to force the validity of TextLine to recreate the line but that doesn't work for some lines. Is there any work around to this?
When the contents of the TextBlock are modified, the Flash runtime marks affected text lines, the previous line, and all following lines as INVALID. So I think you may want to get the lines
[When you try to override TLF source code] after ContainerController.updateCompositionShapes 
[When you just take advantage of offical TLF library] in the event handler of UpdateCompleteEvent.UPDATE_COMPLETE.
2. The highlighter rectangle which I have created, have tried to placed it as a child element of TextLine. Due to this, the highlighter rectangle appear infront of the TextLine. I have tried to positioned it at 0 location using addChildAt but that doesn't seems to work. Is there any work around to this also please?
In TLF code, we creat Shape as the child of the container to draw the selection, because TextLine is transparent.

Similar Messages

  • [svn] 4793: Fix bug SDK-17734 Path with width and height set different than path data has incorrect bounds

    Revision: 4793
    Author: [email protected]
    Date: 2009-02-02 11:20:06 -0800 (Mon, 02 Feb 2009)
    Log Message:
    Fix bug SDK-17734 Path with width and height set different than path data has incorrect bounds
    Fix: When calculating the bounds position we should take into account the implicit scaling factor actualSize/naturalSize. Also did some refactoring, getting rid of the protected method calculateTopLeft.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-17734
    Reviewer: Ryan
    tests: mustella gumbo/layout/GraphicElement
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17734
    http://bugs.adobe.com/jira/browse/SDK-17734
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Ellipse.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Path.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.a s

    Thank you so much for replying.
    Yes I have removed and reinstalled WMP.
    I had good results with the PD6 application installed on the default path onto the C: drive with the one exception that if the application was launched by accident and the user data path was not available, the PD6 application would blow away my custom user path registry settings. Now that I know what they are I have made a .reg file to repair my registry to my desired user data paths.
    Installing the application on the removable drive appeared to help prevent me from launching the application by accident and overwriting my registry with default user paths.
    So which is the less of the two evils?
    If the application directory is not available, windows media player still tries to launch the .msi for installing PD6.
    If I install the application to the C: drive but the user data to the removable drive, launching the PD6 application without the user data drive will still corrupt my registry settings for a user data path.
    Both these issues seem like a logical (if not easy) fix that should be done in the PD6 application and installation package. I mean really, cannot anyone tell me why windows media player is checking the PD6 application directory? Why in PD4 did we have an option control for setting the user data path from the PD4 application? Why is this option not in the PD6 application, just the installer?
    I am given a choice during installation to move the user data to another non default location. Why else would this be provided if not to accommodate my kind of request to store the user data into an alternate location other than “My Document”. Certainly Palm is not trying to force the users on how to protect and store their personal data?
    Post relates to: Centro (Verizon)

  • Retain bounding box dimensions after reflecting object

    Is there any way of retaining the dimensions of a bounding box after reflecting an object. E.g. if I create a rectangle and rotate it 45 degrees the bounding box is flush with the rectangle around its perimeter. However if I reflect the rectangle vertically at 90 degrees the bounding box is no longer flush with the rectangle and so I cannot scale the rectangle without losing its original dimensions.
    I've tried the reset bounding box option but it doesn't seem to work very well. Is there any way to reflect an object and retain the bounding box perimeter? Thanks.

    Sorry, mistake in my original post. I should have said 30 degrees (or anything other than 45).
    Example. Create a rectangle and then rotate it 30 degrees. Create a copy of the rectangle and then reflect it 90 degrees vertically. The image below illustrates the new (post-reflection) bounding box on the left. The rectangle height cannot be changed without losing the width dimensions and vice versa.
    The second example below illustrates the problem with a stick man created using a number of rounded rectangles.
    The bounding boxes for the reflected stickman (on the left) prevent the limbs from being lengthened correctly.

  • OCR labview code-character bounding rectangle

    NI didn't leak the codes and examples fully for Vision Assistant so I have to use the assistant whenever I train some characters.
    I want to add the simple training routine to my main program.
    As a start point, I would like to detect the character bounding rectangle of OCR object (like a red box of attachment) before reading a character set.
    Is there any related vi for this work?
    labmaster.
    *)NI Read LCD/LED.vi didn't operate for my purpose. gave up after investing time and various camera.
    Solved!
    Go to Solution.
    Attachments:
    yahoo.png ‏9 KB

    NI labview provided the code in OCR panel.

  • Minimum bounding rectangle of a single geometric feature

    Is there a function in ORACLE Spatial 8.1.7 that returns the
    minimum bounding rectangle (MBR) of a single geometric feature?
    SDO_TUNE.EXTENT_OF returns a MBR but for the whole layer but not
    for a single geometry.

    Hi,
    This is much slower than the built-in function for 9i, but might
    be helpful in any event. This function only works for 2d
    geometries. It doesn't do error checking for points and such.
    It assumes a NULL SDO_SRID. Etc. It isn't supported. In 9i, I'd
    immediately suggest going to sdo_geom.sdo_mbr.
    Call it like this:
    select xmbr(geom) from geod_states where state_abrv='NH';
    create or replace function xmbr (geom mdsys.sdo_geometry)
    return mdsys.sdo_geometry is
    vmbr mdsys.sdo_geometry;
    ogg mdsys.sdo_geometry := geom;
    ii number;
    xlow number;
    xhigh number;
    ylow number;
    yhigh number;
    begin
    -- initialize it
    xlow := 999999999999;
    ylow := 999999999999;
    xhigh := -999999999999;
    yhigh := -999999999999;
    -- assumes 2d geometry
    for ii in 1..ogg.sdo_ordinates.count
    loop
    if mod(ii, 2) = 0 then
    -- y
    if ogg.sdo_ordinates(ii) > yhigh then
    yhigh := ogg.sdo_ordinates(ii);
    else
    if ogg.sdo_ordinates(ii) < ylow then
    ylow := ogg.sdo_ordinates(ii);
    end if;
    end if;
    else
    -- x
    if ogg.sdo_ordinates(ii) > xhigh then
    xhigh := ogg.sdo_ordinates(ii);
    else
    if ogg.sdo_ordinates(ii) < xlow then
    xlow := ogg.sdo_ordinates(ii);
    end if;
    end if;
    end if;
    end loop;
    -- build the object (MBR rectangle)
    vmbr := mdsys.sdo_geometry(2003, null, null,
    mdsys.sdo_elem_info_array(1,1003,3),
    mdsys.sdo_ordinate_array(xlow, ylow,xhigh, yhigh));
    return vmbr;
    end;

  • Determine Minimum Bounding Rectangle of objects

    I need sql/plsql to determine the minimum bounding rectangle of a group of one or more polygons. The result can be returned as an optimised polygon.

    If you are using Oracle9i, how about sdo_geom.sdo_mbr for one geometry, or sdo_aggr_mbr for multiple
    geometries. Note they do not work on geodetic data.

  • My iphone 5s got stolen and the option to erase data after 10 tries was not enabled. What happens after the incorrect password is input after 10 times?

    my iphone 5s got stolen and the option to erase data after 10 tries was not enabled. What happens after the incorrect password is input after 10 times?

    After the sixth erroneous passcode entry a delay is imposed that increases exponentially and eventually reaches over 40 years before another attempt can be made.
    No one yet knows how long the next delay is.

  • FOR Minimum bounding rectangle

    Hi,
    Is there a function available in sap hana spiatial for finding minmum bounding rectangle on geometries.
    Currently, I am using below query to find it
    SELECT new ST_Polygon('POLYGON (('   || Min("GEOM".st_xmin()) || ' ' || Min("GEOM".st_ymin()) || ','
       || Min("GEOM".st_xmin()) || ' ' || Max("GEOM".st_ymax()) ||
       ','   || Max("GEOM".st_xmax()) || ' ' || Max("GEOM".st_ymax()) || ','   || Max("GEOM".st_xmax()) || ' ' || Min("GEOM".st_ymin()) || ','   || Min("GEOM".st_xmin()) || ' ' || Min("GEOM".st_ymin())   || '))') FROM "table" GROUP BY  ID
    But this is failing for point geometries in table because (xmin, ymin ) and (xmax,ymax) are same for point and it is not able to create polygon for it.
    I have also tried ST_UNIONAggr(thinking of getting envelope of the aggregated geometry) but this gives error with - invalid function or procedure name.
    Please suggest.
    Thanks in Advance.
    Nishtha

    Hello Nishtha, thanks for contacting us. Please refer to the SAP HANA and In-Memory Computing group: http://scn.sap.com/community/hana-in-memory You can post the same question there. I hope you will find this helpful. Kind regards, Federica

  • Getting incorrect coordinates, width/height of page-item in actionscript.

    Hi,
    I am developing a Flex extension for InDesign CS5. I am trying to get the coordinates and width/height of a page-item. But, I keep getting incorrect data. Please refer screenshot. The coordinates as I see in the InDesign application are 38.8, 66.02, 117.5, 160.5.
    I used the geometricBounds method to get the coordinates and width/height, but I am getting 29.70, 40.26, 222.07, 178.11. Please refer the screenshot.
    I read somewhere that the coordinates can change with respect to the ruler settings, i.e., it depends on Ruler per Spread, Ruler per Page or Ruler on Spine. But, I couldn't find anything related to this with respect to actionscript.
    How can I get the coordinates and width/height that I see in the InDesign application through actionscript?
    Thanks!

    @poortip87 – make a rectangle with the coordinates ActionScript is suggesting on your page together with your placed image. Then you can see how this correlates to the path points of the rectangle that holds the image.
    Further reading on geometricBounds and their relationship to other geometric properties of page items can be found here:
    Marc Autret:
    Work Around the Width/Height Gap
    http://www.indiscripts.com/post/2009/10/work-around-the-width-height-gap
    Uwe

  • Rectangle Resizing After recent CC 2014 Illustrator update.

    Just updated Illustrator 2014 CC and I can no longer size rectangles via selection tool. Here is the kicker - this is only with rectangles, circles & text boxes resize like normal. I have reset preferences, checked the bounding box & reset the bounding box - nothing has worked.

    Michelle,
    I am afraid you have come across the Live rectangle bug which is limited to the MAC versions starting with 10.7 and 10.8, but not 10.9 (Mavericks), see this thread linked to below.
    https://forums.adobe.com/thread/1595973
    So a switch to Mavericks with a reinstallation might be the way to solve it here and now.
    It is possible to Expand the Live Rectangles to get normal old fashioned rectangles.
    A way round that is to create normal old fashioned rectangles, after running the free script created by Pawel, see this thread with download link:
    https://forums.adobe.com/thread/1587587

  • How read a pdf file and change TableCell height after reading it using itext api

    I have created a pdf form file using itext ( see class CreatingFormClass ) with itext PdfPTable and PdfPCell. It is done successfully .
    Now I  read this pdf file and filling this pdf file(see class FillingFormClass  ) and at this point i want to change  PdfPCell height () according to Items.
    It is possible or Not???
    My code is given below.
    Thanx in advance
    public class FillPdfFormMainClass {
    public static  String RESULT1 = "E:/BlankForm.pdf";
        public static  String RESULT2 = "E:/FilledForm.pdf";
        public static void main(String[] args) throws DocumentException, IOException {
            String empName="Rakesh Kumar Verma";
                    // This part is Dynamic. It can be 1 item Or can be 25 items
            String listOfItem="Item 1 \n Item 2 \n Item 3\n Item 4 \n Item 5 \n Item 6 \n Item 7 \n Item 8 \n Item 9";
            CreatingFormClass example = new CreatingFormClass(0);
            example.createPdf(RESULT1);
            FillingFormClass class1 = new FillingFormClass();
            class1.manipulatePdf(RESULT1, RESULT2,empName,listOfItem);
    public class CreatingFormClass implements PdfPCellEvent {
        protected int tf;
        public CreatingFormClass(int tf) {
            this.tf = tf;
        public void createPdf(String filename) throws DocumentException, IOException {
            Document document = new Document();
            PdfWriter.getInstance(document, new FileOutputStream(filename));
            document.open();
            PdfPCell cell;
            PdfPTable table = new PdfPTable(2);
            table.setWidths(new int[]{1, 2});
            table.addCell("Name:");
            cell = new PdfPCell();
            cell.setCellEvent(new CreatingFormClass(1));
            table.addCell(cell);
            table.addCell("Item List:");
            cell = new PdfPCell();
            cell.setCellEvent(new CreatingFormClass(2));
            cell.setFixedHeight(60);
            table.addCell(cell);
            document.add(table);
            document.close();
        public void cellLayout(PdfPCell cell, Rectangle rectangle, PdfContentByte[] canvases) {
            PdfWriter writer = canvases[0].getPdfWriter();
            TextField text = new TextField(writer, rectangle, String.format("text_%s", tf));
            text.setBackgroundColor(new GrayColor(0.95f));
            switch (tf) {
                case 1:
                    text.setText("Enter your name here...");
                    text.setFontSize(8);
                    text.setAlignment(Element.ALIGN_CENTER);
                    break;
                case 2:
                    text.setFontSize(8);
                    text.setText("Enter Your Address");
                    text.setOptions(TextField.MULTILINE);
                    break;
            try {
                PdfFormField field = text.getTextField();
                writer.addAnnotation(field);
            } catch (IOException ioe) {
                throw new ExceptionConverter(ioe);
            } catch (DocumentException de) {
                throw new ExceptionConverter(de);
    public class FillingFormClass {
        public void manipulatePdf(String src, String dest,String empName,String listOfItem) throws IOException, DocumentException {
            PdfReader reader = new PdfReader(src);
            PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(String.format(dest, empName)));
            AcroFields form = stamper.getAcroFields();
            form.setField("text_1", empName);
            form.setField("text_2", listOfItem);
            stamper.close();
            reader.close();

    Hi,
    I am facing the same problem. Please help me out. I just want to read a PDF file as bytes from one location and write it as another pdf file in some other location with a diolog box prompting to open or save in the location where we want.
    I executed the following code:
    try{
    File report =new File(location);
    BufferedInputStream in=new BufferedInputStream(new FileInputStream(report));
    response.setContentType("application/x-download");
    response.setHeader("Content-Disposition", "attachment; filename=" + report.getName());
    OutputStream outs = response.getOutputStream();
    int readlen;
    byte buffer[] = new byte[ 256 ];
    while( (readlen = in.read( buffer )) != -1 )
    outs.write( buffer, 0, readlen );
    outs.flush();
    outs.close();
    in.close();
    response.setStatus(HttpServletResponse.SC_OK);
    } catch (FileNotFoundException fileNotFoundException) {
    PrintWriter out= response.getWriter();
    out.print("<center><Font color = 'RED'><b>"+PxDSLUtils.getApplicationProperty("label.error.CTM_E017")+"</b></Font></center>");
    Though it prompts with open, save dialog box when i try to open directly or when i save it some where locally and then open it i am getting the following message " File is repaired ot damaged.Operation failed." Any idea about what can be done??? Its very urgent.Please suggest.
    I am not convetin to string just reading and writng as bytes itself.
    Thanks in advance,
    Mani

  • Patience running thin. max HEIGHT after I publish to bizcat.

    what a piece of garbage.  this is only reason i joined creative cloud.  I have a site in progress and when i publish it to view in on business catalyst, the resulting site seems to have a max height, cutting off everything below 600px.  All else is working fine on other sites where site properties, footer, header, etc are in common.
    Can I upload my files for staff member to view and let me know what’s going on.
    It is a cross browser problem.  it works in preview mode, but after it is published there is something lost, or added in translation.
    Please help - my patience for trial and error is running thin.
    http://kkzcom.businesscatalyst.com/ - LINK TO RESULT

    The following email was sent yesterday, and since then I have published the site to a third part host, go daddy, and the problem was carried over to them as well. http://kinetikartz.com/
    Obviosly this is a much larger problem than i had anticipated, which allows me to conclude that muse is the problem and not bizcatalyst.
    An accurate preview comes when i "Preview" the page within muse, as well as when i "Preview in Browser (all browsers)."  Fail seems to come upon uploading to 3rd party FTP.  I'm not sure if it is worth exporting the muse file then uploading it to godaddy but i'll give it a shot.  Time is of the essence may be an overstatement, but it is surely an unexpected distraction, and hopefully a problem with a solution, and to be even more optimistic, a problem on my part so I can be sure to avoid it later under my own control rather than crossing my fingers in hopes that a muse bug may falter my efforts of the 99% of my work which went into the site pre-publishing.
    Thanks

  • CREATING A RECEDING RECTANGLE IN AFTER EFFECTS

    My apologies, but I'm kind of a left brained guy and sometimes it's hard to wrap my mind around right brain spatial problems that others find laughably easy.
    I'm interested in creating this simple box with four walls through which one could view a video at the far end.  I don't need all the little videos on the side, I am just unsure how to create that simple box.
    Would I extrude that in 3d somehow?  Can I construct it all at once rather than aligning one wall at a time?  I'm not too good with parallax and vanishing points yet.
    What basic workflows do I need to master to create this simple box in 3D?
    Thanks so much!  Rocket science to me right now.
    Here is the underlying video from which it was derived; it was constructed in another program, but I'm certain this is very straightforward in AE.
    https://www.youtube.com/watch?v=qvP6mFokVCETh
    Thanks!   Matt Dubuque

    Position the anchor points is purely mathematical. Think of a cube with all of the anchor points for each layer exactly in the center of the cube. If the sides were 400 pixels by 400 pixels then 1/2 of the width or height would be 200. Offset the anchor point by 200 pixels in Z and you've moved all of the layers back by 1/2 the width of the layer. Since rotation always happens around the anchor point when you rotate the in increments of 90º they will always end up with aligned edges.
    Now to the problem of your edge seams. First of all, work with even pixel values for the size of your layers. 200 X 200 works, 205 X 205 or 300 X 145 won't work as well. This is because AE does sub pixel positioning and the edges at half pixel values will be interpreted with different values than edges at whole pixel values.
    The second problem is that any time there's any angle to a line or edge the edge must be interpreted to fix aliasing (jaggy edges) that are caused when you try to draw a diagonal line on a checkerboard. It is called anti-aliasing. This gives you different pixel values at the edge with the image is at an angle. After Effects makes it's transparency calculations using straight alphas. In most cases this is by far the best option. When it comes to matching up edges of these 3D planes it isn't the best. It would be better to add the alpha values together rather than use a straight calculation which combines the values.
    Fortunately AE has a blend mode called Alpha Add. It only effects the alpha channels are calculated.  Changing the blend mode to Alpha Add eliminates the problem until you start adding lights to your scene.
    As soon as you start adding lights to the scene you run into additional problems calculating alpha edge values. There are some workarounds to eliminate light leaks in these situations that involve scaling the layers slightly that are nearest the camera so that the problem is hidden. In spite of what your wife says trying to be perfect in every frame isn't a very good way to make a living in the visual effects business. You have to be able to make your scene look right with the least amount of effort so you can move on the the next of the thousands of frames it takes to complete a project. That is the biggest challenge faced by anyone working with AE.
    Unfortunately, unless you use ray traced rendering to extrude a box in AE you cannot fix the problem completely, but by carefully designing your animation to hide these problems you can make things look perfect without being so. Take these two cubes with a point light set in the center. The one on the left is perfect but looks wrong, the one on the left has the back left wall moved 1 pixel to the right and the right front wall is scaled 101% in X to hide the seams. If I needed to spin the cube and add motion blur I would need to pre-compose the spinning cube and add CC Force Motion blur to the scene to hide the seams. It's prety easy to see which version of the spinning cube works better.
    I hope this long winded explanation helps. Take a look at his image. It shows two solids separated by 2 pixels in the center. The Alpha levels of the pixels that are going to match up are shown. The panel on the left shows the edges matching with the blend mode set to Alpha Add. The image on the right shows the blend mode set to normal. The differing shades of blue are caused by combining rather than adding the alpha values of those pixels.

  • Setting the rectangle height at RUNTIME

    Hi. I am looking for a way to set a rectangle's height at runtime. Basically, I want to do a column-type chart, but by code. If have looked into the SRW package, but couldn't find any property related to that kind of item. If you know of any other way, even without using a rectangle, of doing this, please share.
    Thank you!

    Hi, thank you for taking the time to answer my question.
    not quite sure what you are trying to do .. it almost
    sounds like you wanted to draw a graph using reports
    objects. why are you not using our graphing solution
    ? The reason I want to avoid using Graphics is because:
    (1) The graph is a simple graphic and I think it would be too much waste if I use graphics.
    (2) I want to avoid the run of a second runtime (in this case, Graphics runtime).
    to answer your question .. there is no way in reports
    to programmatically change the width and/or height of
    objects. they are determined by the content of the
    object (e.g. a field).Yes, but there is no way to have a source on a rectangle, right ? Want I am thinking now is to instead of using a rectangle, use a field and make it grow vertically, so I can manage by its source. What do you think about it ?

  • Can correct/incorrect captions stay visible after quiz is answered?

    Hi,
    Currently using the default master slide for Multiple Choice and True/False quizzes when the student answers the quiz and presses the Submit button an incorrect or correct caption will appear with a prompt to "Click anywhere or press 'y' to continue. When the student clicks or presses 'y' they go to the next screen but if they decide to go back and review the quiz the incorrect/correct caption is not displayed.  Is there a way to have this caption stay visible once a quiz has been answered so the student will know if they got the quiz right or wrong?
    Cheers,
    Richard

    Just one detail in Lilybiri's post that I want to make sure everyone understands.  In Lilybiri's example the Review Mode custom variable she has set up gets set AFTER all quiz attempts have been exhausted. 
    As she points out, she has dragged the Review Quiz button underneath the Retake Quiz button so that the ONLY way the user can initiate Review Mode is by exhausting the number of allowed attempts.  This is a critical point.  Because unless you do this, and both Review Quiz and Retake Quiz buttons are visible side by side on the slide, the user could click Review Quiz BEFORE they have exhausted all quiz attempts and then the solution would not work as expected because the custom variable has not yet been set.
    So be sure to read and follow Lilybiri's instructions exactly.  As usual, she provides a great solution.
    Rod Ward
    http://www.infosemantics.com.au/troubleshoot-adobe-captivate

Maybe you are looking for

  • Ipod touch drops connection

    I just got a 8 gig touch and have a airport extreme.When I get 10 to 15 feet from the extreme it looses connection. As I walk away from the extreme the signal get weaker and weaker . I have a macbook and imac that are 2 rooms away with strong connect

  • Clicking a website link in Safari, produces a page of code

    If I'm in a website and I want to download something I click the download button and instead of the download starting I get a full page of coding. For instance if i go to Adobe and try to download flashplayer by clicking the link I get a page of code

  • Displaying products depends on category

    i have categories select box and i have sub categories select box after selecting sub category and click go means i am retrieving products related to that sub category the displayed ui is like prodName ProductNumber laborTime Cost aaa 123 5 100 this

  • Using fifos or indicators / varibles on cRio.

    I'm currently working on the classical "remote, non-distributed measurement of voltages using the 9205 module" application. I was just wondering if I need at all to use fifos to transfer data from the fpga to the host computer on the cRio-9004. I did

  • Disable Delete Function for Assets

    Hi all, Is it possible to block the Delete function from ALL assets for specific user roles only while still allowing other specific user roles to use it?