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

Maximum number of rows in a sqlite table

Give an simple sqlite3 table (create table data (key PRIMARY KEY,value)) with key size of 256 bytes and value size of 4096 bytes, what is the limit (ignoring disk space limits) on the maximum number of rows in this sqlite3 table? Are their limits…
volatilevoid
  • 12,605
  • 4
  • 21
  • 16
22
votes
4 answers

Estimating database size

I was wondering what you do when developing a new application in terms of estimating database size. E.g. I am planning to launch a website, and I am having a hard time estimating what size I could expect my database to grow. I don't expect you to…
Ash M
  • 1,399
  • 2
  • 10
  • 23
18
votes
6 answers

find out if text of JLabel exceeds label size

In Java when the text of the JLabel could not be displayed due to lack of space the text is truncated and "..." is added in the end. How can I easily find out if currently JLabel displays full text or the truncated? EDIT: I see that there is a way…
jutky
  • 3,895
  • 6
  • 31
  • 45
16
votes
3 answers

Sizing and Capacity Planning Tips and How-to

I am often asked to perform sizing and capacity planning for our clients. When our clients buy our products (basically J2EE web applications), they often ask what hardware they will need to run those products. Our recommendations often result in…
Dan
  • 11,077
  • 20
  • 84
  • 119
15
votes
2 answers

How to force an to take up width, even if the image is not loaded

I'm loading a bunch of img's, and I'd like them to take up space on the document even if they are not loaded, or have not completed loading yet. I tried specifying width and height (both as attributes themselves, and within a style attribute), and…
Sambo
  • 821
  • 3
  • 10
  • 19
13
votes
1 answer

Widget wrong grid size

I've written a widget which is supposed to be 4x2 homescreen blocks. It's minheight and minwidth, with accordance to the current "App Widget Design Guidelines" page are android:minWidth="250dp" android:minHeight="110dp" And a padding is applied…
Nick
  • 6,900
  • 5
  • 45
  • 66
12
votes
2 answers

Layout buttons so each divides up the space equally

Im using a LinearLayout to put two buttons horizontally side-by-side, but I want to each button to size itself to use 50% of the horizontal space. I thought layout_weight of "1" for each button would do the trick, but maybe my layout_width needs to…
Eno
  • 10,730
  • 18
  • 53
  • 86
10
votes
4 answers

Sizing an Android multi-line TextView

I have an Activity where I want to display a heading that takes up the top quarter of the app and displays a dynamic set of text. In some cases it'll all fit on one line and I'd like the font size to get sized up so it's large and easy to read. In…
William
  • 171
  • 1
  • 3
  • 7
10
votes
1 answer

What is the difference between % and vw in css?

1vw = 1%, so if they are 100% interchangeable why they both exist? I feel % depends on the size of wrapper tag but vh is always dependent on window size no matter of size of wrapper tag. Thanks,
DragonKnight
  • 1,740
  • 2
  • 22
  • 35
10
votes
1 answer

Sizing a child element relative to parent's border-box

If I set the size of a child element in percentage, the size will be calculated relative to parent's content-box, independently from the fact that I have set its box-sizing property to border-box. So if I have something like this: .parent { …
NinGen ShinRa
  • 651
  • 5
  • 16
10
votes
4 answers

How do I change a JFreeChart's size

I've added a JFreeChart to a JPanel (using a BorderLayout), and it's huge. Is there something I can do to make it smaller? public void generateChart() { DefaultCategoryDataset dataset = new DefaultCategoryDataset(); //set the values of the…
DannyD
  • 2,732
  • 16
  • 51
  • 73
9
votes
2 answers

Using CSS, how do you anchor an element to a baseline and size it based on another "pinned" element?

Here's an image of what I'm referring to: If you have some fixed height h from the baseline that the pin lies, and the green element is dynamically sized, how can you make the orange element take the space between the two?
mxiong
  • 251
  • 1
  • 9
8
votes
4 answers

Image within a WPF application displays smaller than when viewed in external viewer

When I display a JPEG in my WPF application (using the following code), it is shown significantly smaller than if I open the JPEG in the Windows Picture Viewer at actual size. I've drilled into the properties of my ImageSource at runtime and my…
joshuapoehls
  • 32,695
  • 11
  • 50
  • 61
8
votes
0 answers

Selfsize grid item in SwiftUI

I have used adaptive and flexible with minimum size with no luck. struct ContentView: View { let rows = [ GridItem(.adaptive(minimum: 80)) // lowering this cuases an unwanted shrink of text. ] var body: some View { …
Mojtaba Hosseini
  • 95,414
  • 31
  • 268
  • 278
8
votes
2 answers

WPF - FlowDocument - Stretch Table to Entire Width?

I have a DataTable containing an arbitrary number of columns and rows which I am trying to print out. The best luck I've had so far is by putting the data into a Table and then adding the table to a FlowDocument. So far so good. The problem I have…
Sonny Boy
  • 7,848
  • 18
  • 76
  • 104
1
2 3
15 16