Thanks folks,
It seems you didn't read what I wrote.
I tried to cover all the possible points of contention to avoid
repeating myself.
But here goes again:
1. I like the flash bar;
--------------------------
QUOTE: 'The flash bar is a very cool feature, ...'
QUOTE: 'has won our hearts [my team's] to have a permanent user
message space in our 1st web2py web app...'
QUOTE: '[It's] ahead of its time (it
beat stackoverflow=)'.
2. I know I can edit its placement;
------------------------------------
QUOTE: 'I could just move the flash bar in layout.html in applications/
admin/
views, but we'll lose this change after updating web2py. '
3. The issue ISN'T the effect type;
------------------------------------------
QUOTE: 'the effect (slide down or fade in) isn't the problem.'
QUOTE: 'The problem is: when the flash bar is rendered - it displaces
the
content (eg editor) below downwards - whether the flash bar slides
down or the effect is a fade in.'
BUT...
when you are working on different monitors, with different
resolutions, from laptops to desktops, the slide down effect on the
rest of the page is COUNTER PRODUCTIVE as it slides the page contents
below it down and out of focus.
Development productivity should be a PRIORITY - NOT... effects!
This is why we use MVC, and why web2py is REALLY cool.
Not because of a increasingly common javascript effect.
I'm aware it can be multiline.
It is in my team's web app.
But we RESERVE the flash bar a relative space in the view based on a
set of messages that we know doesn't render more than x lines down in
the bar.
This way it will not ANNOY our users by moving the view down.
COMPROMISE SOLUTION
--------------------------------
If you re-read my 2 posts above, I even suggest a nice compromise
solution:
Ironically - by using the flash bar MORE in web2py.
Have it permanently rendered as a message area, using reserved
relative space, that would not only note when a file is saved... but
also when it is being edited, peeked at, etc.
Example
-----------
1. Page loads with flash bar rendered with message: 'Editing file...';
2. User clicks [save];
3. Flash bar 'flashes' (fade out and in), message changes to:
'File ...saved'.
This way NO slide down is need.
A 'cool' effect is still used eg fade in/out - whatever to get user
attention that an action has been performed.
And multiline messages could easily be rendered.
HOW MANY LINES does Peeking at... Editing file ... Saving file ... etc
take up?
The 'Saved file...' text is centered and tiny in the flash bar as it
is.
Each of the other action messages (Peeking, Editing) could easily be
rendered in the flash bar.
Solving this would be a small matter of standardising the font size
with ems.
As is NOW... this duplication of message space is messy:
Once space for some actions eg 'Editing file...'
And another space for others eg 'Saving ...file'.
You'd solve two problems (page focus being lost from page sliding down
- and message duplication) by giving the flash bar its own permanent
space.
BUT IF A COOL EFFECT IS MORE IMPORTANT THAN THE NEEDS OF DEVELOPERS
WHO HAVE TRADED THEIR FAT CLIENT IDEs FOR WEB EDITING, then the future
of web2py is questionable.
You'll just get effects fanboys/girls hoping to use the latest T2
plugin to make a whole app.
Sorry for the attitude... but as I wrote above... this doesn't just
affect me.
And I tried to convey my points in my first post, politely and
thoroughly to avoid confusion.
It would have helped if people had read the posts.
It may seem a trivial need. But a functional need should over-ride
subjective aesthetics.
And this effect detracts from the coolness of using web2py's Admin/web
editor.
I may be a Python noob - but I'm not new to coding in other languages,
and some of my team are way more talented and experienced coders than
myself. And we ALL get annoyed at the page dropping down because of a
silly effect. EVERYONE who joins the team asks how to disable the
effect so they can keep track of where they were on the page.
noobpythoncoder
PS Phyo - if you mean the 'Find and Replace' tool in the editor - does
this search multiple files? This is the functionality I'm referring
to, which is why I mentioned it in the context of 'Admin'. I should
have been clearer. If such a function exists - please point it out.
Else, once the dust has settled on the 'plugin debate', I'll get my
team to contribute a plugin that does this.