TableView DataTemplate curious behavior of line height

I noticed a problem of calculation of the HEIGHT of the LINE of the rows of the Table in a TableView.

as a first step, I put TemplateRowProperties (40, PIXEL_HEIGHT).

tested with some lines and it worked.

But if there are more lines height becomes higher as more lines are there.

has then tried to replace PERCENTAGE_HEIGHT and the value 10, so I expected that each line should get 10% of the display height.

but the behavior even if there are more lines.

Finally I'm done with this workaround: (not perfect, but in my case there are between 2 and 50 ranks works)

dataTemplate.useFixedHeight(true);

// Define regions and row height
for (int i = 0; i < ROW_COUNT; i++) {
   dataTemplate.setRowProperties(i, new TemplateRowProperties(
       Math.max(1, MathUtilities.round(50/ROW_COUNT)),
            TemplateRowProperties.PERCENTAGE_HEIGHT));
}

is this a known bug? or I did something wrong?

tried to useFixedHeight the value false, but then the height was too small.

It's a simple table with 3 columns. Column width properties work as expected.

int[]columnWidthPercent = new int[]{10,25,65};
for(int col = 0; col < COL_COUNT; col++) {
      dataTemplate.createRegion(new XYRect(col,0,1,1));
      dataTemplate.setPosition(col,0,14);
      dataTemplate.setColumnProperties(
        col,
        new TemplateColumnProperties(
          columnWidthPercent[col],
          TemplateColumnProperties.PERCENTAGE_WIDTH));
}

THX

We have problems with our login server Thursday, which have been resolved.

Thanks for the taping of the show.  Someone should look into it soon.

Tags: BlackBerry Developers

Similar Questions

  • Digital fixed but different line height value

    Hello world

    On my front, I have a table (column) 1 d of numerical values next to a table (column) 1 d of channels. I need them to the line upward. I think that the height of figures is not editable, but for strings, you can change it.

    Here's my problem, on different PCs, I found that the heights of digital line have different fixed values. On my development PC (LabVIEW 2011, 32-bit), the line height is 22 pixels. On all the other test PCs (also LabVIEW 2011, 32 bit) the line height is 20 pixels. I need the berries to align all PC, but it looks different.

    Does anyone have any suggestions on how I can fix this?

    The height of controls digital and indicators are based on the font used for this.  The strings have their height adjustable independendtly.

    On these different PC, are you using different operating systems?

    See this thread and a few others.

    What you need to do is set the font for the strings and numeric values to be a specific font which is present on all operating systems and do not use 'system' or 'application' font that is based on the current settings of the operating system

  • problem of line height in the edition after the update!

    That's what it looked like before the update.

    ZEHSPfu.png

    This is how it looks now.

    hG6wWh7.png

    same value of line-height. but it happens that when I post when I discover it locally there is no problem.

    As I said earlier, if you replace the

    TS: "textShadow" with ts: "textStyle".

    in the file edge.5.0.0.min.js in the folder publish\web\edge_includes, things will work.

    -Vivekuma

  • CC Flash embedded fonts line height average bad

    Have a problem with the text Dynamics fields using fonts embedded in Flash CC. all is well in the IDE, but once it's test-> released the line height is far. If I switch to a font like Arial system there is no problem when published. Examples:

    Fonts embedded in IDE

    embedded-stage.png

    Police emedded test-> publish

    embedded-publish.png

    Test of system fonts-> publish

    arial-publish.png

    Yes, the cc pro flash forum.

    Addendum: Here is a link: http://forums.adobe.com/message/5425262#5425262#5425262

  • Line height / spacing problem

    http://www.saracenlanding.com/events.html

    How can I open the line height in the text of the table? I wrote to 1.5 em line height in the rule table, but for some reason, it does not. This is the first site I ever built in DW (CS3 I think) and I don't know that it is gross under the hood. I wrote the rules on this one just for this page.

    Thanks in advance,

    Joe

    This rule in your linked css stylesheet:

    #veg-content table tr td {}
    border: 1px solid #000;
    do-family: Verdana, Geneva, without serif.
    line-height: 1em;
    do-size: 90%;
    Padding: 0.36em 0.35em 0.35em 0.4em.
    height: 25px;
    }

    Will work around this rule in your stylesheet css embedded.

    #holder table {}
    do-size: 0.8em;
    line-height: 1.5em;
    make-weight: normal;
    background-color: #FFC;
    border: 1px solid #000;
    border-collapse: collapse;
    text-align: left;
    vertical-align: top;
    }

    You have two options - change the height of the 1.5em line:

    #veg-content table tr td {}
    border: 1px solid #000;
    do-family: Verdana, Geneva, without serif.
    line-height: 1.5em;
    do-size: 90%;
    Padding: 0.36em 0.35em 0.35em 0.4em.
    height: 25px;
    }

    or "move down", a little further using your built-in css style.

    #veg - content #holder table td {}
    do-size: 0.8em;
    line-height: 1.5em;
    make-weight: normal;
    background-color: #FFC;
    border: 1px solid #000;
    border-collapse: collapse;
    text-align: left;
    vertical-align: top;
    }

    Option 1 is better because I don't see any reason why you would wrap the table in two

  • Line height 100% ItemRenderer

    I have an itemRenderer I use to return lines from the following list:

    < mx:List id = "logDayFeaturesAndBreaks" width = "100%" height = "100%".
    dataProvider = "{components}".
    itemRenderer = "com.plank.components.LogDayRowRenderer"
    visible = "{Components.Length > 0} '"
    variableRowHeight = "true".
    / >

    What I'm trying to do, is get each line take up to 100% (which occupies the height of row dynamically, depending on the amount of height requested by the child object rendered as a line item). Set a static amount for the line height is not an option, because the objects of each line are not necessarily all of the same height. (And note that I've set variableRowHeight true above.) What I am doing wrong? Lines appear just like virtually no height, so you can't see the objects of each line. Instead, it's just a thin blue line that appears when you hover over with the mouse on the line.

    Thanks in advance for any help!

    A friend helped me and we got it to work. Update code is attached. Also had set the number of rows in the grid of the class BreakDisplayBox to the correct value, and then the BreakDisplayBoxes showed the right size.

    Thanks for the help.

  • Minimum line height

    Any body know:

    What units of measurement areas of line and the height in the properties toolbar works in? I put a line height of 99, but the ruler line to be a little more 40pixels, no idea why this discrepancy?

    Also, I could reduce the height of 99 to 1 if I wanted, but the line on screen never reduced to less than 19 or 20 pixels in height (according to the rule), this is also true when displayed in a browser. Any thoughts why this could be would also be greatly appreciated.

    Thank you, a mind taxed

    (_seb_) wrote:
    > Taxed spirit wrote:
    > Interesting point Murray, thank you for this comment.
    >>
    > When I hear doom and gloom phrases like: "paintings like to collapse."
    ' > around their content ", it me (a beginner) still affects concern.
    >>
    > If something like that were to happen you can tell pretty much when it
    > happens. I want to say for example, if I'm doing a site and download it, then
    > check and it is ok that's it, or some people might see it
    > collapsed while I can see that, or she is reduced for everyone
    > at an unknown time in the future.
    >>
    > Thank you in advance for your help.
    >>
    >
    > If you do not give any height to your line, it will probably look at the
    > even in all browsers.
    > Giving a height of a table row is not valid html and will be ignored by
    > most of the browsers (actually it will be ignored by all modern browsers,
    (> as long as you have a valid doctype on your page).
    >
    > is surprising, but true, the table width and height very treated web
    > differently, especially regarding width, but without taking account of the height. Never
    > giving height to tables and table cells is the best practice.
    >
    > In other words, when it comes to height, think that: "the content will be.
    ' > determine the height of a container, not the height attribute.
    > Still in other words, do not try to create a blank layout. build a page layout
    > WITH content that will go into it and it will tell you how your
    > layout will naturally stretch to accommodate the content.
    >

    more information:

    IF you really want to force a table cell to have a minimum height, use either a gif "spacer" (as
    Murray suggested), which is a transparent image that you place in one of the cells of a row, and
    force the line to the height that you give to the image.
    In general:





    a text

    The gif of 250 height force the line to be at least 250 px high.

    Another way to achieve the same thing would be to place a div (rather than an image) in the cell, and
    set the height of the div with css:

     

    Because (something surprising), while the height of the table and cells is ignored, the height divs is NOT.
    Note that the div must contain something (where the).

    --
    SEB ([email protected])
    http://webtrans1.com | high-end web design
    Downloads: Slideshow, browser directory, mailing list

  • APEX 5.0 Interactive report (nopadding, how to set the line height)?

    APEX 5.0.

    Theme: 26. Productivity applications

    Interactive report region

    Where and how can I global set Dimensions height of the line and policies, etc., lines in interactive report?
    I use standard interactive report.

    Thank you

    user555867 wrote:

    Please help me in detail.

    The best way to get detailed help is to create an example on apex.oracle.com and share credentials of developer comments in the workspace here.

    I have:

    1 created a (= external CSS style sheet) file with the name 'ir_css_padding.css' local on PC (C:\tmp).

    2 added "Shared components"-> 'Static Application files'-> 'Download the file statistics Appl.': 'c:\tmp\ir_css_padding.css '.

    3. under "attributes of User Interface:

    (General properties)

    The value 'Statistics file prefix': ' #APP_IMAGES #ir_css_padding.css.

    'Media Type' value: text/css

    Why have you changed these settings? They are not relevant to the addition of static CSS files in the repository database. Read the help on line for these properties:

    Static file prefix

    Determines the virtual path of the Web server uses to point to static files when you use the #APP_IMAGES substitution string #.

    Do not specify what to do refers to files that are stored with your application definition in the database.

    For performance reasons, you can also store your application files on your Web server. Use a valid URL to refer to them.

    Media type

    Enter the Internet media type. An Internet media type is identifier into two parts for the formats of files on the Internet. A media type is composed of at least two parts: a type and a subtype and one or more optional parameters. This type of media used in the HTTP Content-Type header when the page is rendered.

    If both the values of page-level and the level of the application for the media Type are NULL, text/html is used.

    Two of these parameters must be null in your current environment.

    (The User Interface definition)

    "CSS File URL' value: 'text/css/ir_css_padding.css '.

    This parameter must use the static text of APP_IMAGES substitution string:

    &APP_IMAGES.ir_css_padding.css

    After that, I can't jerome in application. (See the only CSS text in the browser)

    --> WHAT IS THE PROBLEM?

    APEX is serving pages using the type of text/css media according to the incorrect media Type parameter described above. Remove and the app will return to normal.

    4. WHERE and HOW VALUE / reference the CSS file?

    I need this change for all interactive reports in my application, self think I can change my model that I use: 'interactive report Region '.

    Interactive report region isn't just a region container designed for use with interactive reports. It does not control the appearance of the interactive reports somehow. Not there at - it a report model for interactive reports. Their appearance can be changed using CSS.

  • How a TableView can iterate over the lines and get the cells?

    I need to iterate over all rows in a TableView without using events. I would like to get the total number of lines, TableRow and a cell of a TableColumn specified in the TableRow.

    Something like this:
    for(TableRow tableRow: tableView.getRows()){
        Cell cell = tableRow.getColumn(4).getCell();
        // do something to the cell 
    }
    Is this possible?

    Published by: Conzar on May 19, 2013 23:18

    However, the problem with the checkbox has been resolved so I don't need to iterate over the lines longer.

    Yes, don't use do not research to manage this is a much better solution, I just gave my search for a solution based on because you asked an iterative solution.

    Below (research) code produces no output.

    It works for me, I've included an example of executable, so you can try it.

    My guess is that you are not taking into account the fact that the research is just a glimpse of the cells of the table at a time in time.
    If you do a search for cell before show you the table on a stage, he's not coming back what it is because the cells are generated only on an as needed basis, and there is no need to generate all the cells before displaying the table on a stage.

    I get the following output on Win7 Java8b89:

    NumberedTableViewSample$2$1@344fe46[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@44187690[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@34618adc[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@61eb7609[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@50b006a1[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@307d4153[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@89b7483[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@70ce61fd[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@178969ad[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@e3149ea[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@3683d879[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@589e421f[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@7e26215b[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@69d59720[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@1ad26ff1[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@32b058e4[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@582e254[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@261c4ebd[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@2cb9cfb[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@63c6fe00[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@16a98443[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@58247401[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@34dc3da4[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@78a62ea[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@29e0032e[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@1781c971[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@18b2e479[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@4801295b[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@19e4c622[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@6a766d41[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@572aed5d[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@3bdf71a4[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@524c48c7[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@47b5a3ea[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@6ef8b38b[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@7fd2ee72[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@4994195c[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@49620450[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@246d8751[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@17e90472[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@def00[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@d1aa50a[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@2a7a58ba[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@2675cbd1[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@1c06ee08[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@1685718d[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@6ba1936c[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@61ef15e5[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@6b2ace30[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@3c4d17c7[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@1c3c9aad[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@27eadfe[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@3f83a064[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@579615f1[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@52a9271b[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@1d221557[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@18947d9e[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@537eab32[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@687cc257[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@3d524978[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@44554375[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@22f89594[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@1f891aaf[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@bafcb2f[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@7ddeea8c[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@26023325[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@4b14700f[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@89eb58[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@6a55a4a6[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@7d95454d[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@375592eb[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@7add3f35[styleClass=cell indexed-cell table-cell table-column]
    

    TestApp:

    import javafx.application.Application;
    import javafx.beans.property.ReadOnlyObjectWrapper;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.beans.value.ObservableValue;
    import javafx.collections.FXCollections;
    import javafx.collections.ObservableList;
    import javafx.geometry.Insets;
    import javafx.scene.Group;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.TableCell;
    import javafx.scene.control.TableColumn;
    import javafx.scene.control.TableColumn.CellDataFeatures;
    import javafx.scene.control.TableView;
    import javafx.scene.control.cell.PropertyValueFactory;
    import javafx.scene.layout.VBox;
    import javafx.scene.text.Font;
    import javafx.stage.Stage;
    import javafx.util.Callback;
    
    public class NumberedTableViewSample extends Application {
    
        private TableView table = new TableView<>();
        private final ObservableList data =
            FXCollections.observableArrayList(
                new Person("Jacob", "Smith", "[email protected]"),
                new Person("Isabella", "Johnson", "[email protected]"),
                new Person("Ethan", "Williams", "[email protected]"),
                new Person("Emma", "Jones", "[email protected]"),
                new Person("Michael", "Brown", "[email protected]")
            );
    
        public static void main(String[] args) {
            launch(args);
        }
    
        @Override
        public void start(Stage stage) {
            Scene scene = new Scene(new Group());
            stage.setTitle("Table View Sample");
            stage.setWidth(470);
            stage.setHeight(500);
    
            final Label label = new Label("Address Book");
            label.setFont(new Font("Arial", 20));
    
            table.setEditable(true);
    
            TableColumn numberCol = new TableColumn("#");
            numberCol.setMinWidth(20);
            numberCol.setCellValueFactory(new Callback, ObservableValue>() {
              @Override public ObservableValue call(CellDataFeatures p) {
                return new ReadOnlyObjectWrapper(p.getValue());
              }
            });
    
            numberCol.setCellFactory(new Callback, TableCell>() {
              @Override public TableCell call(TableColumn param) {
                return new TableCell() {
                    @Override protected void updateItem(Person item, boolean empty) {
                        super.updateItem(item, empty);
    
                        if (this.getTableRow() != null && item != null) {
                          setText(this.getTableRow().getIndex()+"");
                        } else {
                          setText(null);
                        }
                    }
                };
              }
            });
            numberCol.setSortable(false);
    
            TableColumn firstNameCol = new TableColumn("First Name");
            firstNameCol.setMinWidth(100);
            firstNameCol.setCellValueFactory(
                    new PropertyValueFactory("firstName"));
    
            TableColumn lastNameCol = new TableColumn("Last Name");
            lastNameCol.setMinWidth(100);
            lastNameCol.setCellValueFactory(
                    new PropertyValueFactory("lastName"));
    
            TableColumn emailCol = new TableColumn("Email");
            emailCol.setMinWidth(200);
            emailCol.setCellValueFactory(
                    new PropertyValueFactory("email"));
    
            table.setItems(data);
            table.getColumns().addAll(numberCol, firstNameCol, lastNameCol, emailCol);
    
            final VBox vbox = new VBox();
            vbox.setSpacing(5);
            vbox.setPadding(new Insets(10, 0, 0, 10));
            vbox.getChildren().addAll(label, table);
    
            // this lookup set won't print anything as no cells have been generated.
            for (Node r: table.lookupAll(".table-row-cell")){
                for (Node c: r.lookupAll(".table-cell")){
                    System.out.println(c);
                }
            }
    
            ((Group) scene.getRoot()).getChildren().addAll(vbox);
            stage.setScene(scene);
            stage.show();
    
            // now the table has been initially rendered and it's initial set of cells generated,
            // the cells can be looked up.
            for (Node r: table.lookupAll(".table-row-cell")){
                for (Node c: r.lookupAll(".table-cell")){
                    System.out.println(c);
                }
            }
        }
    
        public static class Person {
    
            private final SimpleStringProperty firstName;
            private final SimpleStringProperty lastName;
            private final SimpleStringProperty email;
    
            private Person(String fName, String lName, String email) {
                this.firstName = new SimpleStringProperty(fName);
                this.lastName = new SimpleStringProperty(lName);
                this.email = new SimpleStringProperty(email);
            }
    
            public String getFirstName() {
                return firstName.get();
            }
    
            public void setFirstName(String fName) {
                firstName.set(fName);
            }
    
            public String getLastName() {
                return lastName.get();
            }
    
            public void setLastName(String fName) {
                lastName.set(fName);
            }
    
            public String getEmail() {
                return email.get();
            }
    
            public void setEmail(String fName) {
                email.set(fName);
            }
        }
    } 
    
  • Conditional text in Table - problems with setting the line height

    Hey there,

    I'm German, but I try to express my problem in English as I can. Not always easy with different menu names. Hope you get what I mean! :-)

    As you can see in my attached screenshot, I placed the text in a table.

    Text height is set: minimum 1.5... so it adapts to the amount of text.

    That's what I want - it should adjust the height of the conditional text marked/s.

    It always adjusts the height when I blind on the first line lines oder between (for example line 2 + 3 4).

    But if I want to blind on the last lines, there is a number at the end and an extra empty line with #.

    I know the # means hidden following text, but why it works with the red/green text.

    There are also some hidden text (green), but the brand # is just after the last word - not in a new line.

    Does anyone have a solution for this?

    Thanks in advance!

    Screenshot_conditional_text.png

    So far, it's ok. A sign of the end of a text paragraph forces a new line.

    To change, do the following:

    For each condition, you need another condition for the paragraph sign that comes immediately after the condition. Not after each paragraph of a condition, but at the end of each consecutive numbers of the paragraphs of the same condition.

    So in your third example you will need more of two conditions:

    1. one for the paragraph at the end of the condition «meaasurements» sign

    2. one for the sign of paragraph at the end of the condition 'price 2 '.

    Whenever you perform other invisible conditions, you must also disable the new conditions that sign a single control paragraph.

    See the following screenshots:

    Uwe

  • Tips for creating the responses with different line heights

    Some of my answers have 1 line, some have 2, some even 3 lines. Any recommendations on configuring my Quiz slide so that the boxes to resize automatically?

    Currently, I have two problems:

    (1) I need layout manually each slide where one or more of the answers takes more than 1 line. It takes some time.

    (2) I can't use "shuffle answers", because the response of the 3 line is sometimes it's original space, and sometimes it's a line a line of response high.

    Any advice?

    I try to avoid long sentences in MCQ, but if it is necessary to have several lines (you can also reduce the size of the police) and I want to shuffle is my workflow:

    • Select the legend of response with the greatest height
    • Jointly select the other legends of the response, and then in the context menu, choose Aligh, resize at same height
    • increase the height of the surrounding area (surrounds all the legends of the response, it is also possible in the Quiz slides model, too bad, there are no placeholders for the legends of the individual response it)
    • move the legend of substantive response as needed (always use shortcuts like DOWN SHIFT and CTRL-DOWN, DOWN not to disturb the alignment)
    • to reselect all the legends of the answer, right click menu, Align, distribute vertically (or use the icons in the toolbar alignment of course)

    It is a pity that you cannot apply these lifestyle changes to all MCQ don't slide, apply no button accordion format, without memory default style in the upper part of the legend of the response properties panel. This means that the process must be done manually, but at least you can mix.

    Lilybiri

  • Find line height and change

    I need to change all the rows in the table with height 4.8 4.3 1000 paintings

    all find and replace, I missed? or maybe scripts?

    Gil

    [Jongware] wrote:

    Here you go: all the stories, all tables, all 4.8 high lines:

    for (s=0; sfor (t=0; tfor (r=0; rif (app.activeDocument.stories[s].tables[t].rows[r].height == 4.8)
                        app.activeDocument.stories[s].tables[t].rows[r].height = 4.3;
              }
         }
    }
    
    

    Save as "changeRowHeight.jsx" in your Scripts folder; Double-click it to run it.

    Isn't this really a modified line from "Casablanca? "" Of all the ladies and all the joints of gin in the world... she must enter the mine! ".

    Kind regards

    Peter

    _______________________

    Peter gold

    Know-how ProServices

       
  • Tree with itemRenderer can have variable line heights (not string data)?

    Is it possible to create a tree that use itemRenderer for the variable row height?

    In my itemRenderer, I create a HBox for each line.

    For some lines, I want to show VBox with several objects like ComboBoxes as his children.

    The VBox overlaps the next line.

    You need to change the Measure [] method to accurately measure your component.

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • Get the type line height / of a JTextArea in a GridBagLayout

    I have a JTextArea declared without default rows/columns, full text of unknown size (assigned during execution). This JTextArea line wrap set to true and wrap the Word style set to true. He is sitting in a JPanel GridBagLayout-ed, with
    weightx = 1, heavy = 0.7 gridx = 1, gridy = 2, gridwidth = 2, gridheight = 1, fill = BOTH, anchor = WEST
    The JPanel in question a height minimum, maximum and preffered all set at the same amount, because I displayed a bunch of these signs in a vertical scrolling region. The problem is, I don't know how many pixels to set for this height because I do not know how big the panel will be as long as GridBag aligning. I put in a ComponentListener to check resize them and I make one
    int desiredHeight = SOME_CONSTANT_FOR_ALL_THE_OTHER_STUFF_IN_THE_JPANEL + jTextAreaObject.getLineCount () * PIXELS_PER_ROW_OF_TEXT;
    then, set the dimensions of JPanel accordingly.

    Unfortunately, it seems that jTextAreaObject.getLineCount () always returns 1, even though I see that he got at least once rolled up (I see a couple of value of pixels on the top of each letter). I guess it's because I have no return carriage/flow line in my text. OK, so I tried jTextAreaObject.getRows () but that always returns 0. So what appeal will tell me how many lines is displayed onscreen, nevermind carriage returns and other? Thank you!

    The 'getWrappedLines' of text utilities method might work for you.

    Published by: camickr on September 28, 2010 17:58

    Anyone know how to get the link to work? I clicked on the button "click to insert a link.

    Published by: camickr on 29 Sep, 2010 01:14

    Thank you, Darryl, the link works now.

  • Customize EditField increasing line height

    Hello

    I need to customize the EditField. Primarily, the visible lines should increase instead of a single row in the first place and further increase the runtime if more text is added. OR has a vertical scroll. Whatever I do, the EditField displays only the first line, increases only after that text will in the 2nd line.

    I searched everywhere on the net and these forums to get some clues, but nothing works for me.

    Help, please!

    Thank you!

    Note: The API Version that I need to use is of 4.6

    Try USE_ALL_HEIGHT bit of style to your new call EditField (...).  Make sure that you limit the size of this area manager.

    Also, take a look at this article:

    TextBoxField revisited

    The code in the article can be more simple in versions 4.6 +.  You have all the possibilities of setBorder() there.  Feel free to experiment.  Don't forget to read the comment as well - he has other ideas.

Maybe you are looking for