mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-14 19:04:44 +00:00
Horizontal scroll bug #692
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#692
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I don't know if this has already been discussed but i think there is a bug in the horizontal scrollview, you can test in the demo, open the log and try to scroll the window, the scroll bar doesn't reach the end and resets itself to zero i tried to use flags combinations to no avail.
Generally I seem to be unable to put a horizontal scrollbar on a multiline inputtext window inside a TreeNode, tried a lot already, from setting the width manually to trying to enforce it on a Begin/End-ChildRegion.
@v71 please clarify because I don't understand what you are saying there, and I couldn't see an obvious bug with neither vertical or horizontal scrollbar in the Log demo (tried just now).
@MINIONBOTS ?? I don't understand what you are talking about either or how it is related. Please clarify and possibly in a different topic because it seem unrelated.
Please provide screenshots and clear repro steps or code. Thanks!
I found the bug when i tried to display a text using the log window which comes with the examples.
If you want to test it quickly, download the examples zip , unzip and run , invoke the log window in the examples window, shrink the log window , then drag the horizontal scroll bar , you will notice that the bar won't reach the entire extent , but it will reset to zero before reaching the extreme end of the child window containg the log informations.
@v71 This is what I am doing but I don't see a problem with the horizontal scrollbar.
Try to shrink the window couple of times , as soon as i get home i will record a vide
Ok i managed to record a short video, ( there is 10 mb limit ) , it happens when i schrink a couple of times the window , sometimes it works at the first run, but it sistematiccaly presents itself everytime i run the code.Sorry for the zip i have only an avi recorded nad github doesn't support it.
scroll.zip
Well
Are you actually reproducing the bug on the Demo: Log window? Or with different code?!
Oh yes, this is a window i created for my engine , it shows the log, i have used the exact code coming from the example file , here it is :
As you can see i took as it is from the example , i thought it was me doing somethign wrong so i
downloaded the examples and ran the opengl3.3 example, i ran the log example, shrunk the window a couple of time and the bug shows up
There is another way to spot the bug, in the log example, shrink the window to nearly make the scroll view disapear, then enlarge it again , but do not enlarge so that you can see all the lines, if you do this , the bug shows up.
OK i have managed to see a repro now. It looks like a clipping bug in the large-text path of TextUnformatted().
Fixed now. It was a stupid bug with TextUnformatted() handling of large-text clipping with horizontal scrolling. Thanks and sorry for taking a while to see it !