Questions tagged [alignment]
In GUI (inc. web page) context, alignment refers to the positioning of visual elements. Or for memory addresses, being a multiple of some power of 2.
alignment
8,749
questions
0
votes
0
answers
9
views
Raster Align QGIS - mismatch in layer projection
I have been given two raster by a colleague, both of which have a pixel size of 50x50m. The first layer is a DEM and the other is a type of habitat layer (Scored from 1-10, and includes a value of 128 ...
0
votes
1
answer
22
views
Alignment problem with UBO on CPU/GPU, GLSL/VULKAN
After adding directional lights to UBO, the light is incorrect on scene. Tried to shuffle elements around, but it doesn't help. If i correct, GLSL UBO structure should be 920 bytes in size? What is ...
2
votes
2
answers
36
views
How do I use the setAlignment method in HBox? JavaFX
I can't seem to get the setAlignment method to work to center my HBox of buttons, labels, and textFields. Everything I've read online makes me think I'm doing everything right but I think I'm missing ...
0
votes
0
answers
24
views
getting aligned pointer inside storage to place object
I have a storage in a form of an array of bytes.
On the stack
// storage on the stack, no requirement on alignment
unsigned char storage[N];
Or on the heap
// storage on the heap, no requirement on ...
0
votes
0
answers
39
views
what can be overaligned types
is "Tis overaligned" equivalent to alignof(T)>alignof(std::max_align_t)? And is it possible to have an overaligned type without using alignas keyword or another explicit alignment ...
0
votes
0
answers
30
views
Getting heap storage with proper alignment in C++ for overaligned type
In some use case, you'll need to allocate storage before creating objects inside this storage.
Then in order to create these objects, you may need to use placement new:
T *pobj = new(pstorage);
yet ...
-1
votes
1
answer
62
views
Getting heap storage with proper alignment in C++ for non-overaligned type
In some use case, you'll need to allocate storage before creating objects inside this storage.
Then in order to create these objects, you may need to use placement new:
T *pobj = new(pstorage);
yet ...
0
votes
2
answers
32
views
Centering all my content in straight line vertically in a website using html and css only
This is the original image where i am trying to replicate it
This what i have made so far
the question how do i align all my content in vertical straight line as in the original picture.
if you ...
1
vote
1
answer
43
views
SwiftUI: Toggle inside List does not use full width in iOS 18 [duplicate]
I'm trying to have a View inside a List occupying the full width of the screen.
The standalone view does. Once in a List, it takes ~60% of the available space.
I tried already to use .frame(minWidth: ....
0
votes
1
answer
41
views
Vulkan StagingBuffer Alignment
Lets say that I have different types of data like vertices, indices... and I want to transfer them by using just one staging buffer. Does buffer alignment cause problem, do I have to check whether ...
0
votes
1
answer
20
views
Javascript Slideshow Alignment
Good day. First off, I am quite the noob when it comes to Javascript so, I appreciate any assistance you might be able to afford. My issue shouldn't be a difficult fix. I am simply trying to align ...
0
votes
0
answers
38
views
how to change the alignment of title and subtitle in listtile in flutter ? ( right to left )
how i can do this in list tile ?
i want the title and sub title be at right side you know?
here is my code :
return Card(
child: ListTile(
...
2
votes
1
answer
80
views
Correctly deleting a dynamically allocated plain array, allocated with `std::align_val_t` alignment parameter
As an answer to Idiom for initializing an std::array using a generator function taking the index?, I proposed a way to obtain a properly aligned storage.
Yet I think that my solution can be simplified,...
0
votes
0
answers
30
views
UIbutton - title label not align centre. iOS 17 Swift
I have a UIButton created in XIB and linked to my uiViewController.
Its title label not align to centre. It's always align to left.
When app running from Xcode , its correctly align centre. When App ...
0
votes
0
answers
18
views
How to create a custom slide layout with centered alignment in Slick Slider for React?
I am using the slick slider library in my React project. I want to slide my elements like in the image below, but with slick slider, there is no way to structure it like this. If I set rows: 2, the ...