9,249 questions
Advice
0
votes
0
replies
27
views
Fluent UDF to set the particle z position to its initial z position
I need to fix the particle position in the z direction to its initial value. The following is the UDF I tried:
#include "udf.h"
#include "dpm.h"
DEFINE_DPM_SCALAR_UPDATE(...
0
votes
1
answer
66
views
Sticky or fixed HTML elements are occluded on mobile browsers when address bar changes size
HTML elements affixed to the top of the page using CSS position property set to either fixed or sticky can often work just fine on desktops, but mobile web browsers behave vastly differently due to ...
3
votes
2
answers
189
views
How do I get the position of text from a PyPlot plot?
We can specify the position of text in PyPlot, but how can we read the position of text? For example, I want to know the coordinates of the Figure's title or the Axes X and Y labels.
Pseudo-code:
x, y ...
2
votes
1
answer
314
views
How to place and orient RealityKit camera
I'm really struggling to get the camera to behave even remotely as expected in a RealityKit app (where I have set RealityViewCameraContent.camera to .virtual).
I have a programmatically generated ...
0
votes
0
answers
27
views
why date wrapper goes top left of screen
The DateWrapper popover is appearing at the top-left side of the button. I've tried fixing it, but it's still not working. how to fix it?
<Box
sx={{
display: "flex",
...
0
votes
1
answer
40
views
Flexbox justify-content:space-between doesn't work properly with position:absolute
I'm facing this issue:
I'm looking to use position:absolute, to adjust the span.materias__item-detalle, to bottom of the div, without caring the size that the h4 occupes.
But, I also want to use ...
0
votes
0
answers
97
views
How to get the coordinate of Composable element?
I’m working on a Jetpack Compose app where I want a Text item in a LazyColumn become transparent as it scrolls under a semi-transparent TopAppBar. To achieve this, I’m using onGloballyPositioned to ...
0
votes
0
answers
24
views
Relative position of widget is always wrong after the first one
So I have this widget class.
class TitledWidget(ctk.CTkFrame):
def __init__(self, parent, title="", **kwargs):
super().__init__(parent, **kwargs)
self.title = title
...
0
votes
1
answer
60
views
How can i keep this div visible until it moves to its end position but scroll past it after it has moved to its end position?
I am able to make this div move right when scrolling but i want its position to be fixed while scrolling before it has reached its end position. The problem I am having is that when I scroll further ...
1
vote
1
answer
124
views
How can I ensure that all prefabs dragged from the assets to the scene are placed at (0, 0, 0) relative to their parent?
I have a handful of prefabs in my project's assets which I am frequently dragging into and out of the scene in order to test them sequentially after changing the code in their attached scripts. They ...
0
votes
0
answers
38
views
Can input elements being positioned in Drupal 10 into a table
I have in Drupal 10 made a simple table that is being build with a PHP as part of a module.
When I use a buildForm-function, I can not position the input fields. I want these to be as if they were ...
0
votes
0
answers
26
views
How can I ensure that the selected item in a PageViewCountIndicator widget always stays centered during scrolling in Flutter?
I have a custom PageViewCountIndicator widget in Flutter that displays a list of dots representing pages. I want the selected dot to always be exactly centered when selected, and I want the scrolling ...
0
votes
1
answer
81
views
How to combine and position title and legend in tmap in R?
I am struggling to place the title inside the frame of the legend, but on top of the legend and not below. Any guidance or working examples would be greatly appreciated! Thank you. The online help isn'...
0
votes
1
answer
65
views
"background blur" in SwiftUI?
I want to draw image overlapped with a blurred panel with a text. The problem is the panel frame depends on text frame. In the same time mask modifier is set separately from text and panel.
My code:
...
1
vote
2
answers
84
views
Why doesn't the left sticky position work when the scroll container is the body?
I've tested this with the scroll container being a div and being the body, and when the container is the body, the sticky position doesn't work properly. It seems to me that the only sticky that works ...
0
votes
1
answer
59
views
Unable to align title of vertical stepper to be at the same level of the circle
I'm building a vertical stepper component in React with a title inside a circle that has absolute positioning. The problem is that since the title is absolutely positioned, it doesn't grow or expand ...
0
votes
0
answers
39
views
Keep scroll positions on page by url
Can you fix the script, which keeps position on difrent pages with no problem, until there you have some pages with redirected to same php file, but different URL (thanks RewriteRule)?
Would like to ...
0
votes
0
answers
16
views
Why is `z-index` not working inside a sticky parent element? [duplicate]
I have a sticky parent container.. and I want a child element to have a higher z-index to appear above other content. However, it does not work..
Even with z-index: 9999, the .child element stays ...
0
votes
1
answer
43
views
Stretch the height of the parent to the height of the absolute element with css
I have a section element which should be floated above the header. But should not hide the footer below. Is there a way to do it using css alone?
function App() {
return (
<div className=&...
-3
votes
1
answer
124
views
Python - Iterate once over string to find all substrings and their positions
I have the following python code using regex that finds the substrings "¬[", "[", "¬(", "(", ")", "]" and get their positions
(I transformed ...
-1
votes
1
answer
79
views
Why is my position: absolute element not being displayed over my body?
/* Main Content Styling */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', serif;
}
body {
background-color: var(--primary-color);
height: 100vh;
padding: ...
0
votes
1
answer
82
views
Making element stick using position:sticky and still keep horizontal scrolling
Tried all kind of stuff, but this reduced example shows the issue.
Fiddle
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.my-calendar {
position: relative;
font-size: ...
0
votes
1
answer
20
views
LibGDX FrameBuffer iOS incorrect offset
I had a problem with FrameBuffer on iOS although the same code worked fine on Android.
The problem is that when I draw a group without using FBO, everything is displayed correctly, but if I draw in ...
-2
votes
1
answer
104
views
How to move an object to the mouse with a set max speed in Windows Forms using C#
The problem is that I can't make the object follow my mouse at a certain speed. I managed to make it follow the mouse, but it increases the speed the further away it's and get slower the closer it's.
...
0
votes
1
answer
74
views
pcolormesh color bar customed ticks position
It seems pcolormesh have a different way of handling colorbar tick position and label than other Python tools. I can't get my labels at the desired position : centered by color segment (see image: ...
1
vote
1
answer
182
views
Change advancedMarkerELement position on drag event in order to be moved on a straight a line
I have changed from markers to AdvancedMarkerElement in google maps api.
I want to drag the marker in a straight line and I achieved this with the old Markers.
The logic is to calculate and reset ...
-1
votes
1
answer
291
views
Different results on Chrome and Safari for absolutely positioned elements when container-type: inline-size is set
I've come across an issue on my site where Safari (18.2) and Chrome (132.0.6834.84) produce radically different results for an absolutely positioned element.
On Chrome, the positioning respects a ...
0
votes
0
answers
58
views
Positioning an Icon in a Registration Form in Tailwind
I'm building a registration form and I'm having trouble positioning the eye icon. Initially, the icon is positioned correctly, but when an error message is displayed, it gets misaligned.
Here are some ...
0
votes
0
answers
45
views
How to rotate a vector in a global frame by yaw/pitch/roll that matches expected motions
For a spacesim, I'm trying to rotate a vector of 1,0,0 (X,Y,Z) by a quaternion in C that will describe motion through space in relation to a global fixed frame (right-handed) of +X=forward, +Y=right, ...
0
votes
2
answers
97
views
Scrolling down on a sticky header menu on mobile
I want to create a standard header bar for my website. That header should always be displayed on top of the window regardless of how far I scroll down on the page. I used position:sticky. So, pretty ...
1
vote
1
answer
168
views
Ngx-Bootstrap Popover Problem Doesn't Appear on Top of Other Elements
I am trying to add a popover to a Ngx-bootstrap input form. I want the popover to appear over the top of the input fields below the input field the popover explains. When I click on the input field, ...
-1
votes
1
answer
378
views
position-anchor not working when the anchor is position:fixed
I'm trying to align a to the bottom-right corner of an element using the CSS Anchor Positioning
#sidebar {
anchor-name: --sidebar;
height: 100vh;
width: max-content;
position: fixed; /* ...
0
votes
0
answers
51
views
Placement of the image climbing under the header
I need to check this section, which contains the product and its image. The image with the "main-product-image" class should be located on the left in the section, and on the right there ...
0
votes
0
answers
69
views
DataGridView. Get the X position of the Nth column
What is a better way to get the X position of the Nth column in a DataGridView?
I try:
int selectedColumnIndex = dataGridView1.Columns["Revision"].Index;
var columnRectangle = dataGridView1....
-1
votes
1
answer
60
views
Position: sticky not behaving as expected in flex row
I have a pretty basic wiki layout, with a navigation bar and article content.
I want the nav bar to be sticky while scrolling the article content, so I've added css properties accordingly.
Basically I ...
0
votes
1
answer
63
views
Weird behaviour of stat_bin position
i am trying to overlay the percentage of people in the sample belonging to each bar, but i am not able to place the number on top of each bar. Even if I try to simply align each percentage with 0, the ...
0
votes
0
answers
37
views
Estimating Tag Position from Distance and Angle of Arrival Measurements with only Anchor Rotation
I'm working on a problem involving positioning in a 2D space and need some help understanding why my approach isn't always working.
I have:
An anchor located at the origin $(0, 0)$.
A tag at an ...
2
votes
0
answers
11
views
How do I move the boxplot and datapoints, together, a bit to the left?
I am visualising the data for the bill depth for these birds for 1976 and 1978. I want a single figure showing boxplot + datapoints, next to the half violin plot, for each year.
I have managed to get ...
0
votes
2
answers
81
views
Is there a way to nest a button in an SVG?
I have four SVG shapes that I am using as text boxes containing a description of courses people can book. At the bottom of the text boxes I want two buttons that have the option to see more ...
0
votes
1
answer
215
views
How to center a CustomTkinter App on the screen?
The way I get it, scaling is dpi aware in customtkinter, but positioning is not?
It seems I need to set x_pos and y_pos regarding x+<x_pos>+<y_pos> in physical pixels (retrieved with e.g. ...
0
votes
1
answer
56
views
How do I make the footer only visible when you scroll to the very bottom of the page instead of always being visible?
So I'm working on a project for school with writing a website. I have a header section that acts as a navbar, a main_body section that acts as the floating block with all the info on the inside, and a ...
0
votes
1
answer
28
views
How to filter documents in Elasticsearch where the name field of the first element of an array is in a given list?
I am working with Elasticsearch and need to filter documents based on the value of a field in the first element of an array. Specifically, I have an array field called Tickers, and I want to check if ...
0
votes
1
answer
79
views
Why is there a white space left under the div when I apply box-shadow? [duplicate]
I'm trying to make a page with 3 images, each one inside a div, but when applying box-shadow there is a gap underneath.
Image with example of the problem
<style>
body {
margin: 0;
...
0
votes
1
answer
60
views
How to grow a div to fill space between two other divs? [duplicate]
I have a div at the top of my page (#top) and one set to the bottom of the page with absolute position (#bottom). I have a div in the middle (#middle) with an inner component (#middle-inner). I would ...
0
votes
0
answers
32
views
2 divs side-by-side with a dynamic height with 2 separate absolute positioned divs in the left corners [duplicate]
This is what I'm trying to achieve:
I want the 2 boxes to be a dynamic height so that if the text of one is longer than the other, both boxes scale to stay the same height (for this I've used flex). ...
0
votes
2
answers
551
views
Flutter Geolocator.getCurrentPosition() not returning anything
I've been using the Geolocator package for a while and it works good, but for the last 2 days it's not working.
Am trying to get last known position, and if there is none i try to get the current ...
0
votes
1
answer
498
views
Moving position of set names on Venn Diagram in R
I am creating a Venn diagram in R using ggplot2. However, I would like to move the labels for the set names ("ID on OST" and "IR on ITT") from the top of the circles to either the ...
0
votes
1
answer
226
views
How to align scroll bar outside of its ListView?
So, the problem is in my RawScrollBar. There's no problem to place it inside ListView, but I need it to be outside of all containers. I can place it outside like on picture, but it seems like there's ...
1
vote
1
answer
71
views
grouped barchart column positioning in ggplot (plotnine) with position_dodge2 in case of missing observation
I have a grouped barchart, with 2 groups. If in a case there are no observations for a particular column, the other of the group is centered. I can't find a way to circumvent this. I would like there ...
0
votes
1
answer
95
views
How can I fix my HTML/CSS code to not overlap the postbody in a PHPBB forum post
I want to make a post with HTML+CSS only where I got four tabs at the top and depending on which tab I click I see differnet content in my post. I do have a code for that, but the problem is that my ...