Resize the height of PageItem only
Just a quick. I know how to resize a PageItem using the resize method when taking a picture of the width and the height...
pageItem.resize(CoordinateSpaces.pasteboardCoordinates, AnchorPoint.centerAnchor, ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH, [10, 10]);
But how I resize in one direction. I looked at the documentation, but it is very confusing.
values: Data Type: table of varies
The width and height values. Legal dimensions specifications: {x, y [, coordinate space]}, {x, resize constraint [, coordinate space]}, or {resize constraint, y [, coordinate space]}; where x and y are real numbers and the coordinate space is used to determine _only_ the unit of length for x and y; coordinate space is ignored for the 'current time dimensions' resizing method). Can accept: table of Reals, enumerators ResizeConstraints or enumerators CoordinateSpaces.
Hi McShaman,
This should do the job:
pageItem.resize( CoordinateSpaces.pasteboardCoordinates, AnchorPoint.centerAnchor, ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH, [ResizeConstraints.KEEP_CURRENT_VALUE, 10] );
Note, however, that your code has exceptionally cardboard space, which means that you resize the framework encompassing focus on the editing table. Ensure that you really want this. (If your pageItem has a rotation applied compared to the editing table, for example, a rectangular shape will evolve into a parallelogram, etc..)
Usually, what you want is to resize the box in its own space (inside), that is, CoordinateSpaces.innerCoordinates.
@
+ Marc
Tags: InDesign
Similar Questions
-
Resize the height of step as changing height of element
I'm doing a sensible step that at the height of the scene such as the background image changes proportionally. Image scales correctly that displacements of browser window, but then leaves plenty of space of the scene empty below the image. The other elements required to align the image so that they are lying. If the stage height is the height of the image at any time it would look perfect.
I don't think I have the height of the stage a percentage or a fixed width. I tried several configurations and all the videos from scene one I saw keep a fixed height. Maybe I'm missing something simple, I didn't spend a lot of time to animate again. It seems that there is a painless semi way to set the height of phase equal to a height of elements with js?
Anyone dealt with a similar situation, or have any suggestions?
Thank you!
Anyone still having problems with the initial issue of resizing the entire composition and having not empty not this black area below (without creating a scene for different windows or something multi solution), it seems that Adobe has created a fix for this problem.
http://www.youtube.com/watch?v=6Bx7MWUy2j4&feature=youtu.be - bit sensitive scale begins at 06:03
Haven't tried immediately, but seems easy enough...
-
CS4 automatically resize the height of the text frame to the baseline of the last line of text
Hello
Does anyone know of a script that automatically resizes all the heights of text frame in a document so that the bottom of each text block falls on the baseline of the last line of text in the text block? The image height must be determined by the text appearing and does not effect excess or stories of threads.
Thank you!!
Chung
As text blocks have a property 'lines', lines have a property 'base' and executives have a 'geometricBounds' property, this quickly written javascript should do the trick for a block of selected text:
app.selection[0].geometricBounds = [app.selection[0].geometricBounds[0],app.selection[0].geometricBounds[1],app.selection[0].lines[app.selection[0].lines.length-1].baseline,app.selection[0].geometricBounds[3]];
(Whaddoyouknow: it can be done in one line)
So let's loop over all the text blocks in your current document:
allf = app.activeDocument.textFrames; for (f=0; f
-
Resize the height of a CNC is not possible
Hello
Because I use a touch screen for my application buttons increment/decrement of the digital control becomes very low. Is it possible to resize the button increment/decrement is somehow?
Best regards
Friedrich Vollink
Pop - up and choose Customize.
Switch to edit mode and then resize the buttons.
Ben
-
Using javascript to resize the height of the div
I use javascript to resize the two div (div "navbar" of navigation on the left of the page) and the 'mainContent' div which is her right.
The attached code shows how I do. The first three lines are added to my model, and the rest is the content of the javascript file (which I have not changed).
He used to work, but as a result of changes to my Web site, it seems to have stopped working. I checked the paths.
Can anyone suggest why it might be failing?
Found the answer. I had changed the navigation bar to use a list of content then that before the content in paragraph tags. If the call to the function required to account for this, IE to become
-
How to resize the height of a GroupItem.
app.executeMenuCommand ('selectall');
app.executeMenuCommand ('group');
var finishedLayout = app.activeDocument.selection
finishedLayout.height = NewHeight
finishedLayout.height = NewHeight gives a good nominal figure in the data browser
but on the page (Illustrator CS6) and inside the GroupItem data it has not changed.
Clearly the methods I've tried so far are bad - including
finishedLayout.GroupItem.height = NewHeight that gives an error.
Please someone told me the correct syntax to use:
Sorry - as I said before, I'm new on this point and documentation
is not exactly full of illustrations and useful tips, although this forum is,
and thank you in anticipation of your response.
.. .or
app.executeMenuCommand ('selectall');
app.executeMenuCommand ('group');
var finishedLayout = app.activeDocument.selection [0]; under the direction
finishedLayout.height = NewHeight
-
How do I resize the height of the "to:" pane?
I've recently updated to v12 and now has to scroll through a long list of "to:" addresses. Previously, I could grab the bottom of the topic pane and drag it down with the recipient pane, expanding both, to see all addresses at a time.
Windows Vista Edition home premium
Thunderbird V12You went completely to 12 worm. ? The current version is 24.6.
Catching the bottom of the line object still works fine. Reboot with Add ons disabled and see if one is to play with you. You can do this in the HELP menu.
Oh and install the latest version.
-
Cannot resize the window as we have after the new update for Firefox
This morning, Firefox installed an automatic update, and after that, I can't resize the window to a smaller proportion. First of all, let me explain why I do this.
We have a local Web page to work where we can keep track of some of the statistics, and it is the only area that I need to post. This area I used to reduce the FF window, move until it was in my opinion and freeze it above all other windows (custom AHK script).
The problem now is that FF resize to the size, it stops at a certain minimum width. Height is no problem, I can resize the height until he is "gone", but the width to a static limit stops.
Example: Earlier I was able to resize to 500px width, but now it stops at 700px width and will not go lower. Earlier, this could go, like, 10-20px width.
A bug, or is there a reason for this?
It's because of Bug 897160, https://bugzilla.mozilla.org/show_bug.cgi?id=897160.
Temp fix in comment 27.
-
You can change the height of a digital indicator in LabVIEW 2010?
It seems that you could have is LV 7.1 such that referenced by this article:
http://digital.NI.com/public.nsf/allkb/AFCA584E0A70774586256E970052AFC3
However, I also found that in 8.5 you apparently cannot resize the height of the indicator/control... as they can get rid of the property of digital text node.
Any ideas if this is possible? Thank you.
Erik
I figured this out, the property node referred to by the guide 7.1 is only visible on the front panel when right-clicking on the item itself (and not all of the control).
-
can't resize the window of firefox, so I can create the shortcut on the desktop
I don't know how to resize the window smaller, it only makes the impression of the page to the smallest, on the page, not the whole outline of the page, so I can move the symbol to put on the desktop! I used the page resizing in the menu, is there another way to do it? Thank you
You can see the 3 buttons at the top right of the window frame: (_) to minimize, maximize/restore, close (X)? If these buttons are not visible, Firefox may be in mode "full screen". The F11 key toggles between the normal modes and full screen.
When you use the middle button on the title bar that toggles between maximized and resizable, is visible in the lower right of the Firefox window? If so, you should be able to click and drag up and to the left to resize the Firefox window. If it is off the screen, you should be able to resize the window in two steps: drag the upper left corner of the window down and to the right, and then drag the window to the top of the screen.
Not sure it's the right answer, but please give it a try.
-
How to change the height in table of the field of Bitmaps
Dear developers BB,
I work with a table of the field (3 x 3) whose I am filled with bitmap images.
I loaded all 9 images successfully, but I don't know how to resize the height of the lines if the pictures would be good.
Any help would be greatly appreciated.
Code snippet:
In the main routine:
Field [] [] tableContent = new field [3] [3];
tableContent [0] [0] = new BitmapField (TopLeft);
...
tableContent [2] [2] = new BitmapField (BotRight);
int [] width = {40, 40, 40};
paddings of int [] = {20,20,20};
Screen.Add (new TableListField (tableContent, widths, paddings));
pushScreen (screen);
outside the main routine...
private final static Bitmap TopLeft = Bitmap.getBitmapResource ("topleft.jpg");
...
private final static Bitmap BotRight = Bitmap.getBitmapResource ("botright.jpg");
class TableListField extends ListField
public TableListField ([] [], int [] columnWidths field content,
int [] horizontalPaddings)
{
numRows = contents.length int;Create a line for each line.
_rows = new TableRowManager [numRows];
for (int curRow = 0; curRow< numrows; ="" currow++)="">
_rows [curRow] = new TableRowManager (happy [curRow]);
}_columnWidths = columnWidths;
_horizontalPaddings = horizontalPaddings;
setSize (numRows);
setCallback (RENDERER);
}I imagine that your RENDERING engine takes three images for each line and displays those all the row using a drawBitmap (...) for each?
In any case, the height of the row in the ListField is controlled by the ListField.setRowHeight () method. You probably want to replace this:
Screen.Add (new TableListField (tableContent, widths, paddings));
with
TabList TableListField = new TableListField (tableContent, widths, paddings);
tabList.setRowHeight (TopLeft.getHeight () + 1);
Screen.Add (tabList);
I hope this helps.
-
I use < mx:VDividedBox >, in which there is a mx:RichTextEditor and mx:Image, as in the code below.
When I dragged the VDividedBox divider to resize the height of the Image and RichTextEditor, I found that the height of the
RichTextEditor cannot be reduced to less than 200. Is this a bug?
I replaced RichTextEditor with TextArea, then VDividedBox splitter works very well. I use Flash Builder 4.5. Please try the following code, and
post that train you here. We will help Adobe to improve Flex.
<? XML version = "1.0" encoding = "utf-8"? >
"" < s:Application xmlns:fx = "http://ns.adobe.com/mxml/2009"
xmlns:s = "library://ns.adobe.com/flex/spark".
xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = "955" = "600" minHeight >
< fx:Script > <! [CDATA]
Import mx.controls.Alert;
[Bindable] public var imageSrc:String = "http://cseligman.com/text/sky/perigeeapogee.jpg";
private function showHeight (): void {}
Alert.Show (this.) RTE. Height.ToString ());
}
[]] > < / fx:Script >
< mx:VDividedBox width = '100 percent"height ="100% ">
< mx:Image id = source = "{this.imageSrc"image_edit"}" scaleContent = 'true' "
horizontalAlign = "center" verticalAlign = "bottom" width = "100%" height = "100%".
/ >< mx:RichTextEditor id = "ten".
Width = '100% '.
Text = "the moon..." Click me to show my height. "click ="showHeight ()"/ >
< / mx:VDividedBox >
< / s:Application >try setting minHeight of RTE to 0
-
Resize the movie without scaling of objects
I would like to have a button in a movie that, once activated, resizes the height and width of the .swf movie, but I don't want anything else on the screen to be adjusted to reflect the change in the size of the movie.
For example, if the dimensions of the movie are doubled in size, I won't double in size, a text box - I want to stay in the same size.
Someone knows how to fix this? -
Determine the height of the label automatically resized?
I have a title tag is word wrapped and resized automatically. I would like to get the height of it, so I can move my text to detail down according to the number of lines is the title tag.
The height of the title tag variable always returns the same value, no matter how many lines it spans. How can I align my text?
If you use the label of all component of qnx, then the label properties textHeight and textWidth give the size of the text in pixels.
-
What is the best way to resize an image, but keep the height and width of the same original size or format?
I tried to use the function of the size of the Image, but when I changed the size of the image, the width has not changed with it.
Thanks for the tips!
Hi Landon.Luu,
You want to keep the relationship between the width and height to be the same?
Click the constraint between width and height to keep the ratio intact.
Kind regards
Claes
Maybe you are looking for
-
Can you get it someone please let me know if all precautions must be taken when using a mouse; usually is it necessary to exercise caution while connecting and removing the mouse from the USB port.From now on, the mouse is detected automatically and
-
Windows Server 2008R2 for Compaq Presario CQ3014L NETWORK card driver need
I looked at the sites, but I could not find this driver, please help me find this driver
-
Win7 Vista upgrade nearly complete but stops due to auto-restart failure
I'm trying to upgrade Vista Home Premium to Win7 Home Premium on my Sony laptop. I don't want to do a clean install of Win7 since I have a lot of older programs that I do not have the diskettes to install for more long. The upgrade progresses through
-
On the function of Date selection?
Hello I've been looking for a while now, and I've not found anything. I have a DateField and I want to call a function when the user changes the date in this field (I want to update certain content in an ObjectChoiceField). Is there a good way to do
-
Need help in the migration of windows 2003 server Oracle database server 2012
HelloMy environment is oracle database 9i in windows server 2003, we want to move to Windows 2012 since the end of support for windows 2003.Please give me a plan, what no need to make the first database upgrade or upgrade of windows, what are the thi