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
2
votes
2 answers

Relative sizing not working

I've been trying to make a JLabel that is sized relatively to the size of the window yet for some reason this JLabel is not appearing on the screen. This is the code used in my MainGUI class which holds the basic interface: import…
beur_x
  • 169
  • 3
  • 11
2
votes
1 answer

Spotify Play Button sizing in hidden elements

We have some embedded Spotify play buttons in a paged quiz style wizard/carousel (using jQuery Tools -yuk- to provide the paging functionality); the issue I'm having is that because each question is on a div that is initially hidden, the content of…
Sebastian Grant
  • 128
  • 1
  • 7
2
votes
1 answer

Set size to CodeMirror editor?

I'm creating mobile app using jQuery Mobile and CodeMirror as a code editor. I'm not a designer so I don't usually mess up with CSS. This is what I have so far . I want CodeMirror control to be stretched down to footer. Css height property won't…
Nikola Ninkovic
  • 1,252
  • 1
  • 12
  • 27
2
votes
2 answers

Changing preferred size of a Swing component

I have a swing component where the ideal size of the component will vary based on the content that is is currently being displayed (which happens in this case to be an image). I'd like this preferred size to change when the content is changed, and…
mikera
  • 105,238
  • 25
  • 256
  • 415
2
votes
1 answer

Border-box CSS not working properly

I have the following code: http://www.designated.net.au/testbed/test/ body { margin:0; padding:0; width:100%; height:100%; background: #000000; } #page { margin:0% 10% 0% 10%; width:80%; height:1000px; …
dais
  • 69
  • 1
  • 7
2
votes
2 answers

How can I create a properly sizing QWebView?

I want to make a QWebView appear expanding to the width and height so that ideally it will have no scroll bars. Some websites may have fixed widths that wont allow this, but I am not concerned with those. In any case, I cannot do as I wish because…
chacham15
  • 13,719
  • 26
  • 104
  • 207
2
votes
1 answer

Effect of setMaximumSize on JPanels arranged in a boxlayout

I noticed something weird with setting maximum sizes in a boxlayout. I need a column of panels running down the right side of a window, and I tried to set it up with a box layout. There might be 8-10 or there might be 30-40, so I give them enough…
user1299656
  • 630
  • 1
  • 9
  • 15
2
votes
3 answers

Fancybox 2 Dynamic Width Based on Content Size

I've got an IFrame being opened via Fancybox 2 that plays a video: HTML: File Name Javascript: $("a.fancybox-video").fancybox({ scrolling : 'no', …
shimmoril
  • 682
  • 1
  • 11
  • 22
1
vote
2 answers

Android Basic Layout Sizing

I am creating a Final Score screen for a game of mine. I've been having trouble with lining up the text in the layout that with the text "Raw Score" "bonus points" and "Final Score". For whatever reason, if I line up the text in the layout editor as…
Rob
  • 762
  • 2
  • 21
  • 44
1
vote
0 answers

My content changes size when zoom in and out

I don't know why but my content changes its size when I zoom in or out on my window (chrome). Does anyone know why? This is my code: Its at the very end of the css and html. If anyone knows what to do It would be greatly appreciated. I tried…
1
vote
2 answers

I'm not sure if this is the padding or Margin but link is too big

There I am having a problem with the size of the link. I have no idea how to make it smaller, and whenever I do. I end up making it move or disappear. I followed the tutorial off of Danni Crossing, on how to make a drop-down menu. But the problem…
1
vote
1 answer

Table with CSS Grid: give all columns of same type width of entry with widest content?

I have the following table design, laid out with CSS Grid (see first snippet). Is it possible to make all columns of the same type/class (e.g. .Table_col_day) as wide as the column of that type/class with the widest content, with CSS/without JS? The…
JoSch
  • 869
  • 1
  • 15
  • 35
1
vote
0 answers

Saving and restoring resized images using react-native-easy-gestures

I am creating a react native mobile app where the user can drag small images onto a picture and position them. They can also stretch or shrink the images to create the layout that they want. I am using react-native-easy-gestures. It works pretty…
Mark A. Rupert
  • 527
  • 7
  • 15
1
vote
1 answer

CSS show all whitespace and break word wrap

I am attempting to make a div that mimics how a digital readout might display text: show any and all characters as what they are (whitespace) wrap to the next line, but not care about word boundaries or the like, simply continue writing characters…
Snappawapa
  • 1,697
  • 3
  • 20
  • 42
1
vote
1 answer

In Flutter, what is the difference between Padding and the SizedBox widget?

Since both are used to add spacing to our screen how do we decide when to use either of them .