Comments (9)
What exactly do you mean with "the space at the very bottom of the gadget". Can you please provide a detailed screenshot to outline what you exactly mean?
from texteditor.
Thanks for the screenshot. Of course I would vote for showing partial lines there as well as that would enable more smooth scrolling and use as much space as possible. And it would give people a hint that there is more to come.
from texteditor.
My ideas to resolve this issue are:
1) Smooth scroll always in doublebuffer mode and prevent gadget creation without a doublebuffering rastport.
...or...
2) Put coordinate checks into DrawSeparator(). Never let it draw out of window (or gadget) boundaries.
...OR...
3) We can compromise to this code while it would be a very rare occasion for a such small doublebuffer bitmap not to allocate and always use doublebuffer when smooth scrolling (or add another condition to DumpText() to switch to doublebuffer mode if it is printing the last line at the bottom - as it does for the top).
What would you suggest on this issue please?
@jens-maus @tboeckel
from texteditor.
Thinking through the weekend I now think the safest way to go is ideas 2 plus 3.
Doublebuffering bitmap is allocated in mShow() and deallocated in mHide() which are the best places to do them because we will have _mwidth() there.
from texteditor.
Better do this kind of stuff in MUIM_Setup/Cleanup instead of MUIM_Show/Hide. The latter will be called upon every window resize action, while the former is called when the window is opened/closed only.
from texteditor.
Yes, you're right. But actually it resizes the doublebuffering bitmap to the new size of the window. So I think it is smarter to keep it in Show/Hide.
Btw. I've made the changes to fix the bug already. We are safe now.
Now I want to ask something implementationally related to this.
What do you think about the space at the very bottom of the gadget? Should we make it print a partially visible line there?
For reference, in Windows' NotePad, it does not, but in Mousepad or Leafpad in Linux, it does.
What are your ideas on this?
from texteditor.
The space at the bottom when the gadget is sized to a height not proportional to the fontheight.
from texteditor.
I totally agree.
If we all agree on this behaviour, then I'm implementing the bug removal according to this and a pullrequest can happen within an hour.
from texteditor.
I'm sorry guys. It turned out that I needed to change more than I expected in PrintLine(). But I'm pretty sure at most tomorrow I'll get it working. :)
from texteditor.
Related Issues (20)
- Crash when doing a text copy in Yam HOT 1
- Keybinding bug HOT 3
- Add MUIA_TextEditor_GlobalAlign attribute
- Characters flow out the line if wrapmode is nowrap HOT 7
- Feature request: MUIA_TextEditor_InactiveContents
- Version 15.51 crashes YAM after change of message selection HOT 11
- MUIM_TextEditor_CursorXYToIndex should indicate success/failure HOT 4
- Cannot get() MUIA_TextEditor_RedoAvailable from call hook HOT 2
- AROS i-386 version 15.51 & 15.52 Text is invisible HOT 3
- MUIV_TextEditor_WrapMode_SoftWrap seems to be the default HOT 5
- Double notification when selecting item from a context menu on TextEditor.mcc HOT 7
- Setting MUIA_Font doesn't work at all HOT 7
- Wrong mouse pointer when context menu is open HOT 1
- TextEditor 15.54 opens a "Inser MUI: drive" requester on i386 AROS HOT 3
- Italian translation for the installer
- Get cursor index from mouse position HOT 2
- MUIA_TextEditor_Rows shouldn't affect MaxHeight HOT 12
- Broken uses topaz font
- MorphOS: MUIC_TextEditor class prevents mouse-wheel/touchbar to scroll content of accompanying MUIC_List, MUIC_Floattext etc
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from texteditor.