Questions tagged [sizing]

The operation of making appropriate scale according to size which can be dynamic.

Applicable in screen sizes (html) or load on server (load testing)

Please see other related tags: and .

234 questions
3
votes
1 answer

UICollectionViewCell: AutoLayout - incorrect size calculation (offset by exacatly 10 pt)

I'm having a set of UICollectionViewCell subclasses with different layout (using AutoLayout). Since "Self Sizing Cells" feature is completely broken, I calculate size manually in the DataSource. However, I've noticed that the calculated size is…
Richard Topchii
  • 7,075
  • 8
  • 48
  • 115
3
votes
1 answer

SpriteKit make images fit screen, not stretch past

I'm working on a project, and SKNodes aren't resizing dynamically based on device size. Example: I'd like what happens on the first image to happen in the second. Is there anything to make this happen automatically? Current sizing for image…
Jordan Osterberg
  • 289
  • 3
  • 18
3
votes
2 answers

Image in ImageView showing up smaller than expected (Android)

I have this animation/code where a tap on the photo enlarges it to the full screen while the rest of the screen turns black. When I use this banana stock photo the size turns out large enough. However, when I pull images from the web using an API…
stumped
  • 3,235
  • 7
  • 43
  • 76
3
votes
3 answers

JPopupMenu change size dynamically if there is a JPanel inside

I have a JPopupMenu and I want to change it's inner size dynamically depending on it's inner components' size. In my SSCCE I described the problem. SSCCE: public class PopupTest2 { public static void main(String[] a) { final JFrame frame…
SeniorJD
  • 6,946
  • 4
  • 36
  • 53
3
votes
4 answers

Get JPopupMenu size before it is shown

I have the JPopupMenu shown on right mouse click. I want JPopupMenu' top right corner to be at the click location (not top left one, as default). To perform this, I need to set the X coordinate as mouseEvent.getX() - popupMenu.getWidth(). The…
SeniorJD
  • 6,946
  • 4
  • 36
  • 53
3
votes
2 answers

Keep size when AutoSize is turned off

I have a form which initialy sizes itself to its contents (a UserControl placed on location 0, 0) by setting AutoSize to true and AutoSizeMode to GrowAndShrink. After initialization, I want the form to take control and turn off AutoSizing and make…
3
votes
1 answer

Problems with canvas size when implementing a scrollbar with Tkinter

I have been having trouble keeping the canvas/window from just expanding to the size of the information I am putting in the widget. I want to add scrollbars and limit the size of the canvas. This is for a popup window within a larger program. Here…
2
votes
1 answer

Flyout window similar to "code parameters" in Delphi IDE

Delphi IDE's "code completion" feature includes a second flyout window with code parameters - the one on the right: An interesting feature of that window is that it is automatically sized to fit the content. What parameters must be used to create a…
Marek Jedliński
  • 7,088
  • 11
  • 47
  • 57
2
votes
2 answers

Estimating the memory size of a software

I'm working on the development of Boot that will be embedded in a PROM chip for a project. I was tasked with making an estimation of the final memory size that the software will probably take but I've never done this before. I searched a bit around…
Leo
  • 500
  • 5
  • 15
2
votes
3 answers

How can I preserve the height of an HTML video based on its content?

This is my code: .gallery { display: flex; overflow-x: auto; resize: both; background-color: rgb(200, 200, 200); padding: 10px; height: 200px; } .item { display: flex; flex: 0 0 auto; max-width: 100%; } .item img, .item video…
Anna_B
  • 820
  • 1
  • 4
  • 23
2
votes
1 answer

How to change the size of columns in DataGrid of react-mui depending on the screen size

I want the title column takes 3/4 of the full row width and the amount column tackes 1/4 of the full row width in all screens (md, sx...). This is the code: import React from 'react' const MyComponent = () => { return (
2
votes
1 answer

WPF ListViewItem Width binding is not working as expected

I am having a problem with getting the listviewitems to size to the space available to it in the second column of a grid. I have a ValidationItemError class that can have a long description. This is the DataTemplate xaml for it.
John Petrak
  • 2,898
  • 20
  • 31
2
votes
0 answers

Bootstrap Sizing smaller then 25%

I know bootstraps sizing that make an element as wide or as tall (relative to its parent). It support for 25%, 50%, 75%, and 100% by default. but I want an smaller size than 25%(I've no idea if it's possible or not). however manually i can use CSS…
Ali Aref
  • 1,893
  • 12
  • 31
2
votes
2 answers

Prioritising a Text control to be as wide as possible at the expense of an adjacent Divider control in a HStack

I have a view that consists of multiple UI elements in a HStack: Time Icon Summary Divider Value I want 1), 2) and 5) to take up no more space than necessary i.e. I don't need to intervene. With 3) and 4) I would like for the summary to take up as…
Barrrdi
  • 902
  • 13
  • 33
2
votes
2 answers

Image doesn't trim according to my screen

I want the image to be visible but I put position:absolute and right:-300px, just to show a part of the image. I don't want to scroll to the right just to show my image, just want to cut it off. I tried overflow:hidden but it doesn't work. Here is…
1 2
3
15 16