Questions tagged [layout]

The layout tag is for questions about the placement, alignment and justification of objects with respect to a containing element. For questions pertaining to CSS, use the 'css' tag instead.

In computing, layout is the process of calculating the position of objects in space subject to various constraints. This functionality can be part of an application or packaged as a reusable component or library.

Android Development Examples:

HTML Examples:

26721 questions
7
votes
1 answer

How do I make a bottom fixed position menu in HTML?

I want to create a box-menu on the very bottom of the browser window. It should stay at the bottom when the content doesn't fill up the entire screen When the content overflows it should only be at the bottom when you scroll down (i.e. you can't…
DarkLightA
  • 14,980
  • 18
  • 49
  • 57
7
votes
2 answers

How can I make a div *not* expand to fill it's parent?

I have a div wrapped around an image, like this:
Blah blah blah.
Now, I…
dieki
  • 2,435
  • 5
  • 23
  • 29
7
votes
1 answer

SwiftUi - Filling a wide-aspect screen

TL;DR: I can't draw an image exactly onto the full screen on wide-aspect (13:6) phones. If I observe the safe area, the error is (predictably) underscan. Using .edgesIgnoringSafeArea() goes (unexpectedly) too far in the other direction. Update Apple…
Andrew Duncan
  • 3,553
  • 4
  • 28
  • 55
7
votes
2 answers

What is "app:layout_constraintHorizontal_bias" used for?

Can anyone please explain what app:layout_constraintHorizontal_bias is used for?
7
votes
1 answer

How to implement a flowlayout in ExtJS 4?

I want to use a layout where components are added horizontally like hbox but where upon adding if the component exceed the bounds of the container it is moved to the next line. This is similar to what FlowLayout is in swing and flex. I couldn't find…
user308808
7
votes
5 answers

Is there a modern / lightweight layout library for javascript for use with backbone.js or the like?

I'm coming back to web UI after a hiatus and looking to create a modern single-page javascript application using backbone.js (or batman.js if it ever desublimates), node.js, communication via now.js etc - but my question is how do I lay the thing…
user445994
  • 229
  • 3
  • 10
7
votes
1 answer

android ImageButton scale and maintain aspect ratio

I have a screen that I'm trying to layout... Basically, I'm trying to evenly distribute 4 ImageButton objects vertically on a screen... I used this here to evenly distribute the items, but now am having a terrible time getting the images to scale…
john ellis
  • 2,152
  • 2
  • 15
  • 13
7
votes
2 answers

Flutter: Possible to position item in CupertinoPicker in the center between the two lines?

Is it possible to change the default position of the item within a CupertinoPicker to the center between the two lines? The default position seems to be rather towards the upper line. This is the code to reproduce the CupertinoPicker import…
Jonathan Rhein
  • 1,616
  • 3
  • 23
  • 47
7
votes
3 answers

Android Scrollview having videoview is giving problem

I have a VideoView that is inside a scrollView. When I scroll the scrollView, the VideoView does not scroll with it. It is like its position is fixed. Here is my layout:
dev_android
  • 8,698
  • 22
  • 91
  • 148
7
votes
1 answer

Can I make WebView element "floating" on top of my main layout?

Is it possible to make WebView (or any view that can parse / display html) a "floating" window on top of the main layout? Basically I have a list of links displayed in a listView. When the user select one of the link, i'd like to load and display…
adjfac
  • 635
  • 1
  • 7
  • 18
7
votes
4 answers

How to figure out common viewport dimensions (not screen sizes) of common devices for adaptive web design?

Looking to find or create a chart presenting a range of mobile/tablet device webpage sizes: viewport dimensions, so available size within browser window both height and width because there's actually a range of ratios in both landscape and portrait…
jumpfightgo
  • 196
  • 2
  • 9
7
votes
2 answers

How to avoid Windows Forms radio button container auto grouping

The background In .NET Windows Forms (2.0) radio buttons are automatically grouped by their container control, whether it is a Form, Panel or GroupBox. That means that when you select one radio button, every other radio button in the same container…
Sergio Acosta
  • 11,418
  • 12
  • 62
  • 91
7
votes
1 answer

SwiftUI stack layout, what is "least flexible child"?

I'm watching the WWDC 2019 talk Building Custom Views with SwiftUI. Around 14:50 he's describing the algorithm for the layout, and he says "we divide the space into 3 equal parts and propose one of those for the size of the least flexible child".…
Rob N
  • 15,024
  • 17
  • 92
  • 165
7
votes
1 answer

Centered image on windowBackground is different than on an inflated layout

I tried to implement a "slash screen" and I faced an issue where the image on splashscreen is not really centered, some times it jumps up and sometimes down and sometimes it's well placed. First of all, the issue: So here you can see my logo, the…
Skyle
  • 211
  • 2
  • 11
7
votes
5 answers

Wrap text around right floated column where left column appears first in html

------------------------ h1 tab1 tab2 tab3 ------------------------ text text | photo text text | photo text text | photo text text | photo text text | photo text text | text text text…
mark
  • 10,316
  • 6
  • 37
  • 58