798 questions
1
vote
0
answers
50
views
Parallax hero image turns grey after window resize / DevTools
I’m using jQuery Stellar to create a parallax hero at the top of the page.
<!-- HERO -->
<div class="site-blocks-cover"
data-stellar-background-ratio="0.5">
&...
1
vote
2
answers
74
views
I keep getting a TypeError using the removeEventListener to remove window resize event
I'm developing a function that adjusts the display content along with the window resize.
I have the following code to add window resize listener
mounted() {
...
window.addEventListener("...
0
votes
0
answers
87
views
Resizing a form C++Builder FMX (Delphi)
My task is to implement a standard mechanism for resizing a form.
I have the main form TForm frmMain.
frmMain->Transperent = true.
On the form is placed the TPanel PanelRoot
PanelRoot->Align = ...
0
votes
0
answers
75
views
Problems going between maximized and sidebar-only window
I have a specific situation where I do not understand how QT works and what is specifically wrong here. Below I describe two observable issues but I suppose that they follow from same underlying ...
1
vote
1
answer
270
views
Unable to resize sheet on macOS 15 with SwiftUI
In my macOS app, I can extend the main window of the app like that:
Window("SingleWindow", id: "single") {
RootMacView()
.frame(minWidth: 1000, maxWidth: .infinity, ...
0
votes
1
answer
93
views
ResizeObserver always return the same contentRect
I'm trying to show a PDF in my page by using "react-pdf". I am now struggling with making it responsive. I am now using this custom hook to get the size of the contentRect:
import { ...
1
vote
0
answers
49
views
how to make the window dynamically resizable and make the GUI responsive to the resizable window without changing the original aligntment
i want the window dynamically resizable and the GUI reactive to its resizable window without changing the original alignment and functions of each buttons and without changing the original logic of ...
0
votes
0
answers
58
views
Using window.matchMedia() to handle the different screen sizes and jQuery to update the DOM
When I am using multiple CSS classes on JS, window.onresize isn't working for me.
Tried different solutions on the web to solve but none worked for me.
My codes:
JS:
window.onresize = function(event) {...
0
votes
0
answers
132
views
How to Restrict Resizing window of iOS App Running on macOS in React Native with Expo?
I am developing an iOS app using React Native with Expo, and the app is primarily designed for iPhone and iPad. However, when running the app on macOS with an M chip, users can resize the window, ...
0
votes
0
answers
99
views
How to write code to resize window displaying an HTML Document?
I am working on a developing a demo displaying a html document and some other things. For this I need to place a window displaying an html document in the top right corner of my screen taking up a ...
0
votes
0
answers
76
views
addEventListener i removeEventListener on menu when resize window
What am I doing wrong? When menu opened in mobile version (< 768 px), first click should open the submenu and second click should get the parent URL (it works). After increasing the window width to ...
1
vote
3
answers
1k
views
Angular Window Resize performance
I'm creating an Angular responsive app where I have more than 10 breakpoints in which I have to group the elements in different containers. Having this in mind I believe that I can't get advantage of ...
0
votes
1
answer
717
views
Take a screenshot of all content (including off-screen) in Flutter
I'm making software for Windows using Flutter. I've already done everything, I'm in the final step where I need to take a screenshot of the content of a SizedBox of size 5000x5000 and transform it ...
0
votes
1
answer
213
views
Kivy Application - Widgets Disappear When Resizing Window Issue
Kivy users, Kivy lovers,
It's worth noting that a similar problem was reported in Kivy version 1.9.1, but it was supposedly resolved with an update. However, with the current version (2.3.0), the ...
0
votes
1
answer
209
views
What is the difference between WindowResized, WindowSizeChanged, and VideoResize events in pygame?
I'd like to scale my sprites when the window gets larger or smaller, I'm not sure which event to watch for in my game loop.
According to the pygame docs:
VIDEORESIZE:
Description: sent when the user ...
0
votes
1
answer
963
views
Lenis smoothscroll: does not scroll to bottom after drop down animation of an element on Firefox
EDIT: It seems that it works on Chrome and Edge. On the latest Safari version for windows (5.1.7) it does not work as it did not support "=>" and Safari does not support Windows 10 update ...
1
vote
0
answers
32
views
Custom jQuery to read window resize is working only when the viewport is an even number
I have a WP website whose header (.wp-container-6) contains a logo-container and a nav (.wp-container-5) in a row. nav has a padding-right matching logo-container's width, so it always stays in the ...
0
votes
1
answer
356
views
How to resize the console window and move it to fill the screen
I am using C++ in Visual Studio 2017, and I am making a text based game in the console window.
When I run my program, and it opens the console window, I want it to automatically go into full screen ...
0
votes
1
answer
104
views
tkinter Label frame and its widgets not getting resized
I am creating a custom tkinter class ResizableLabelFrame() which has a label frame and an inner frame to hold widgets. While resizing the window, the widgets are not getting resized. Could anyone ...
1
vote
0
answers
401
views
GLFW OpenGL window slow to update on resize?
I have a simple triangle program:
#include <cstddef>
#include<glad/glad.h>
#include<GLFW/glfw3.h>
#include<iostream>
void framebuffer_resize_callback(GLFWwindow *window,int ...
0
votes
2
answers
165
views
How to prevent elements from resizing when resizing the browser window?
Is there a way to prevent the elements of the page from resizing when resizing the browser window? For example, I want the width and height of the 'rectangle' element to stay the same no matter the ...
0
votes
1
answer
81
views
how can i create resizable widgets in PyQt5?
i am working on a project using PyQt5 and i want to make sure that the widgets are resizable by the user >
what do i mean ?
this is a picture explains the meaning :
i want to make the user be able ...
1
vote
0
answers
96
views
Error resizing browser window in chrome extension
I am developing a chrome extension and I wanted to resize the browser window to a specific size. I am using the chrome.windows.update method. This is the following code
chrome.windows.getLastFocused(...
0
votes
1
answer
41
views
container excluding some of its elements
I have this container #headline containing my #content, button, and #pagination, and for some reason whenever the screen width was being resized for example for phones orientation, for some reason, it'...
0
votes
4
answers
619
views
offsetWidth and offsetHeight adding an extra 10px+ on every other window resize
I have a parent element and a child element. On window resize event, the child element has its width and height set to the parents' offsetWidth and offsetHeight, however on every other resize both the ...
0
votes
1
answer
141
views
How to have a window size that adapts to its content size and vice versa?
This is quite a conundrum to me because I have quite a mess about it.
So let's imagine having a window with SizeToContent="WidthAndHeight"
<Window x:Class="Test.MainWindow"
...
1
vote
1
answer
567
views
update variables on window resize
i must be missing something simple here, so dont shoot me down, i need to update the variables on resizing the window so the div fits 100% the width and height of the window ,but for some reason they ...
0
votes
1
answer
489
views
Why window.resizeTo() function is not resizing window at the smaller then given values in JavaScript
I am building an app using python-eel in chrome mode (Front end : in HTML, CSS & JS). The problem is I use a function which resize the window on resizing the window so that my app content looks ...
0
votes
0
answers
192
views
Reshifting columns after drag and drop using React-rnd
I am just getting started with React. I am trying to use React-Rnd npm to perform a drag and drop as well as a resize. I have a grid of 2*2 and I will have 2-4 Rnd controls available for users based ...
1
vote
1
answer
154
views
Stretch canvas 100% width but contain in window
I have a canvas that I am stretching with CSS using width: 100%;. It works great to maintain aspect ratio because the height adjusts automatically. But I want it to stop growing when the window is ...
0
votes
1
answer
58
views
How to set min/max dimensions of a Form in a Python FMX GUI App?
I've made a Form using the DelphiFMX GUI Library for Python and it's working perfectly fine, but I want to set a minimum and maximum size for the Form to make sure the window can't resize below or ...
-1
votes
1
answer
38
views
Is there any fast way to rescale page through CSS?
Have a following problem. When I created page, I didn't notice that customized all content to the scale of 25%. So when I return page to normal scale it looks like a mess. So I'm wondering, is there ...
1
vote
0
answers
27
views
Make randomly positioned elements change position responsively within parent
new to stack overflow, so apologies if I'm missing something here.
Question 1: I've got this code that positions elements randomly within its parent - its woking great until I resize the screen. How ...
2
votes
1
answer
464
views
Update `offsetWidth` value on browser resize
I have a horizontal scrolling div with several child items. Depending on the width, child items can get cropped. So you might get 4 and a 1/2 visible items. So I've used Javascript to force a width to ...
-1
votes
1
answer
82
views
Mfc invokes onsize event of embedded wpf control
I embedded a wpf control to an mfc app using Hwndsource and c++cli technology. SiteToContent was setted to WidthAndHeight.
A wrong resize occures on different computers. When mfc control is created, ...
1
vote
1
answer
391
views
Tkinter: resizable text box with scrollable
When the following code is run, a text box appear with scrollable. However, I need to make the textbox resizable with the cursor. How can I it?
import tkinter as tk
import sys
class ...
0
votes
1
answer
2k
views
Javascript event which occurs when resizing a DOM element?
Im working on a project in which the height value of a resizable div always needs to be divisible by 24 (This is so it always matches the default lineheight). I have created a function for resizing ...
0
votes
1
answer
373
views
Resizing browser window breaks JavaScript image zoom function
I'm quite new to HTML/CSS/Javascript and I have been following this example to create an interactive zoom of another image. The code works fine for me. It also works if the size of the input image is ...
0
votes
0
answers
127
views
How to make my JFrame components dynamically scale when resizing the window, without hard-coding position and size values?
I'm learning java through university and I've been taught the basics of making a java program and designing GUIs. Maximizing a window after running my program makes all the JFrame components stay in ...
1
vote
0
answers
44
views
How do I use addEventListener resize with useEffect to replace existing values from array
I have a problem where I cannot replace the existing values of an array on window resize event. It just keeps adding values one after another.
I want to make it so that every time I resize the window ...
0
votes
1
answer
62
views
Nested MigLayouts stretch out of bounds when restoring from fullscreen
I have a non-trivial Swing app running on Windows that has an issue with window resizing: when I maximize the window and then restore it, the main panel doesn't resize properly with the window. The ...
0
votes
2
answers
224
views
componentDidUpdate is not fired
In my source code, the height of the component EditorBasic that I measure by .current.clientHeight changes when resizing the window, which is not correct. To reproduce the bug, I wrote the following ...
0
votes
0
answers
84
views
Resizabble rubber band doesn't resize with QmainWindow
For an AI application, I need to define some overlays over images.
I am using the following code to draw a resizable rubberband on an image (Thanks to https://stackoverflow.com/users/11021720/vesa95 ...
0
votes
0
answers
46
views
I have a question about window.resize on React.js
How can I use window resize event on react.js?
It works well, but sometimes it's in the wrong place when I reduce the size quickly by mouse.
that is my code
window.addEventListener(
'resize',
...
1
vote
1
answer
323
views
Grid isn't responsive in Chrome and Safari (stuck at 980px window-width)
The problem is: when changing width of a window in Chrome or Safari, my grid element would create 1 additional row to fit its children, and when the window is shrunk even further it won't create any ...
2
votes
1
answer
518
views
Load javascript on window resize
My page
Giving my different sections their own height to be able to make them overlap each other. I got it working, but the javascript only loads when the page refreshes.
Is it possible to add some ...
0
votes
1
answer
380
views
Why does a form move trigger ResizeEnd?
I use the following code in my form:
Public Class Form1
Private Sub Form1_ResizeEnd(sender As Object, e As EventArgs) Handles MyBase.ResizeEnd
MsgBox("Resized")
End Sub
End ...
4
votes
3
answers
14k
views
How do I change the size of the Flet window on Windows or specify that it is not resizable?
In Flet on Windows, I'm running the calc demo and trying to modify properties of the application window in Python.
How do I change the size of the Flet window in code and specify that it should not be ...
6
votes
2
answers
7k
views
MAUI resize events
I am experimenting with MAUI for a windows app that needs to work on a multitude of screen sizes from wide screen to tablet and allow window resizing.
I need to be able to detect a windows resize ...
0
votes
1
answer
622
views
Developer tools - Horizontal Panel - not working
I cannot get the panel layout to change to horizontal, no matter the width of the devtool panel.
Thank you in advance.
screen capture of open devtool panel - set to horizontal, but displaying as ...