http://redmine.emweb.be/http://redmine.emweb.be/favicon.ico?16934085252014-03-13T13:11:26ZRedmineWt - Bug #2801: Hide with setHidden and a Animation don't workhttp://redmine.emweb.be/issues/2801?journal_id=85162014-03-13T13:11:26ZWim Dumonwim@emweb.be
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li></ul><p>Hi Torsten,</p>
<p>I tried to reproduce this on hello world, fading a WLineEdit, but it seems like animation works as expected. Can you make a small example that demonstrates the problem?</p>
<p>BR,<br><br>
Wim.</p>
Wt - Bug #2801: Hide with setHidden and a Animation don't workhttp://redmine.emweb.be/issues/2801?journal_id=86152014-03-19T21:48:07ZTorsten Schulztsschulz@gmx.net
<ul></ul><p>Hello Wim,</p>
<p>sorry for my late answer, I hadn't an account before.</p>
<p>That's what I had done:<br><br>
Aplication constructor:</p>
<pre><code>enableUpdates(true);
class ChannelControlPanel : public MyPanel {
public:
ChannelControlPanel();
private:
...
WContainerWidget *_infoBox;
WTimer *_changeMessageTimer;
void ChannelControlPanel::_changeMessage()
{
if (this->_messagesQueue.size() > 0) {
this->_infoBox->clear();
this->_infoBox->addWidget(new WText(WString::tr(this->_messagesQueue.front().toUTF8())));
this->_messagesQueue.pop_front();
if (this->_infoBox->isHidden()) {
this->_infoBox->setHidden(false, WAnimation(WAnimation::Fade, WAnimation::Ease, 1000));
this->_infoBox->clicked().connect(this, &ChannelControlPanel::_changeMessage);
}
if (this->_changeMessageTimer == NULL) {
this->_changeMessageTimer = new WTimer(this);
this->_changeMessageTimer->setInterval(7500);
this->_changeMessageTimer->timeout().connect(this, &ChannelControlPanel::_changeMessage);
this->_changeMessageTimer->start();
}
}
else if (this->_infoBox->isHidden() == false){
this->_infoBox->setHidden(true, WAnimation(WAnimation::Fade, WAnimation::Ease, 500));
this->_changeMessageTimer = NULL;
}
}
</code></pre>
<p>And the part thats wondering is:</p>
<pre><code>setHidden(false, ...);
</code></pre>
<p>and</p>
<pre><code>setHidden(true);
</code></pre>
<p>works as expected, but</p>
<pre><code>setHidden(true, WAnimation(...));
</code></pre>
<p>don't works.</p>
Wt - Bug #2801: Hide with setHidden and a Animation don't workhttp://redmine.emweb.be/issues/2801?journal_id=94792014-06-02T13:40:11ZTorsten Schulztsschulz@gmx.net
<ul></ul><p>I've a new information. It isn't working for only with chrome (I'm testing with chrome 35). At Firefox its ok.</p>
Wt - Bug #2801: Hide with setHidden and a Animation don't workhttp://redmine.emweb.be/issues/2801?journal_id=98842014-08-09T22:10:02ZMarcel Ebmermarcel@aufroof.org
<ul></ul><p>I have experienced a similar problem (also posted this on the forum).</p>
<p>The below full example exhibits the problem in Firefox 30 and Chromium 35. The hide_me_widget stays where it was until I reload the page. After reload, it is immediately gone.</p>
<pre><code>#include <Wt/WApplication>
#include <Wt/WPushButton>
#include <Wt/WContainerWidget>
Wt::WAnimation slide_in_from_left(Wt::WAnimation::SlideInFromLeft);
class FooApplication : public Wt::WApplication {
public:
FooApplication(Wt::WEnvironment const& env)
: Wt::WApplication(env),
hide_me_widget(new Wt::WContainerWidget(root())),
hider_button(new Wt::WPushButton("hide!", root())) {
hider_button->clicked().connect([&](Wt::WMouseEvent const&) {
hide_me_widget->animateHide(slide_in_from_left);
});
hide_me_widget->addWidget(new Wt::WText("I can be hidden."));
}
static FooApplication* create(Wt::WEnvironment const& env) {
return new FooApplication(env);
}
private:
Wt::WContainerWidget* hide_me_widget;
Wt::WPushButton* hider_button;
};
int main(int argc, char** argv) {
return Wt::WRun(argc, argv, &FooApplication::create);
}
</code></pre> Wt - Bug #2801: Hide with setHidden and a Animation don't workhttp://redmine.emweb.be/issues/2801?journal_id=98902014-08-11T11:54:03ZKoen Deforchekoen@emweb.be
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>InProgress</i></li><li><strong>Assignee</strong> set to <i>Koen Deforche</i></li><li><strong>Target version</strong> set to <i>3.3.4</i></li></ul> Wt - Bug #2801: Hide with setHidden and a Animation don't workhttp://redmine.emweb.be/issues/2801?journal_id=98912014-08-11T12:38:04ZKoen Deforchekoen@emweb.be
<ul></ul><p>Hey,</p>
<p>I could fix the issue from Marcel but I guess that's unrelated to the original problem.<br><br>
I believe there must be something we are overlooking in the animation that is caused by how you are setting up the widgets. Can you isolate the misbehavior in a self-contained test-case?</p>
<p>Regards,<br><br>
koen</p>
Wt - Bug #2801: Hide with setHidden and a Animation don't workhttp://redmine.emweb.be/issues/2801?journal_id=98922014-08-11T12:38:14ZKoen Deforchekoen@emweb.be
<ul><li><strong>Status</strong> changed from <i>InProgress</i> to <i>Feedback</i></li></ul> Wt - Bug #2801: Hide with setHidden and a Animation don't workhttp://redmine.emweb.be/issues/2801?journal_id=111072015-03-18T13:46:34ZTorsten Schulztsschulz@gmx.net
<ul></ul><p>Hello,</p>
<p>sorry for the late answer. I'll try to make it in the next days, but I was too busy (by other important implementations) to do it.</p>
<p>Regards,<br><br>
Torsten</p>
Wt - Bug #2801: Hide with setHidden and a Animation don't workhttp://redmine.emweb.be/issues/2801?journal_id=111972015-03-26T08:56:49ZTorsten Schulztsschulz@gmx.net
<ul><li><strong>File</strong> <a href="/attachments/1802">main.cpp</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/1802/main.cpp">main.cpp</a> added</li></ul><p>Hello,</p>
<p>I created an example app. There you can see the not working animation on hiding.</p>