Skip to main content

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.

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 ...
CjC's user avatar
  • 35
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 ...
Ciborg's user avatar
  • 25
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 ...
Steven O'Brien's user avatar
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 ...
Oersted's user avatar
  • 1,643
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 ...
Oersted's user avatar
  • 1,643
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 ...
Oersted's user avatar
  • 1,643
-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 ...
Oersted's user avatar
  • 1,643
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 ...
Mathew Jacob's user avatar
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: ....
Sébastien Stormacq's user avatar
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 ...
yigitEmre's user avatar
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 ...
David Lytle's user avatar
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( ...
Hana.HD's user avatar
  • 91
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,...
Oersted's user avatar
  • 1,643
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 ...
Sujisha Os's user avatar
  • 1,351
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 ...
Nayeem Dev's user avatar

15 30 50 per page
1
2 3 4 5
584