Comments (7)
Hi @melissanoelle,
Thanks for reporting this issue!
I'm wondering are the m-pikabu-left
and m-pikabu-right
elements always available on the page or are you dynamically adding/removing them based on the browser size? It seems like Pikabu is losing access to that DOM element somewhere along the way.
Is it possible for you to post a version of the HTML/DOM that you are trying to run Pikabu on? Also, right after you run the code to initialize Pikabu, if you check self.pikabu.$sidebars.left
is it still empty or is it populated at that point?
Cheers,
Ted
from pikabu.
Thanks for your response! I won't be able to respond to this until Monday though. Just thought I'd give you a heads up.
from pikabu.
You are correct with your guess that I am unsetting and then resetting a new m-pikabu-right
element as my UI changes. There is not a period of time where it is ever not set for a long period of time though, only that time in between removing it from one element and adding it to another.
I don't think it's possible for me to post access of what I'm working on anywhere online where you could reach it, unfortunately. Right after pikabu is initialized, pikabu.$sidebars.left
is []
.
from pikabu.
Hey @melissanoelle,
Would it be possible to replace the contents of the right sidebar without replacing the whole sidebar? That might get around this issue until we figure out a method for re-initialization.
from pikabu.
Unfortunately, it's not. The left panel does something like that, but I'm
using pikabu on top of the Candy chat framework, and the right drawer
contents aren't redrawn for each chat room, they're hidden to allow it to
maintain state for the users in the roster.
On Sat, Sep 27, 2014 at 1:53 PM, Kyle Peatt [email protected]
wrote:
Hey @melissanoelle https://github.com/melissanoelle,
Would it be possible to replace the contents of the right sidebar without
replacing the whole sidebar? That might get around this issue until we
figure out a method for re-initialization.—
Reply to this email directly or view it on GitHub
#40 (comment).
from pikabu.
Did you need anything from me on this?
from pikabu.
@melissanoelle I don't think so. With the current implementation we don't have a way for you to re-create the Pikabu if elements that it relies upon are added or removed from the page. It works well if you are able to keep the structure of the page static but is lacking otherwise.
I'm wondering if maybe the best course of action would be to delete/re-creating the Pikabu when your document structure changes.
In future versions of Pikabu this use-case is something we want to be able to handle but at the moment I don't think we do a good job of it.
from pikabu.
Related Issues (20)
- Turn off 'applyPersistentStyles' style injection HOT 2
- closeSiderbars() not a function HOT 1
- Firefox display: -moz-box unnecessary? HOT 5
- Desktop Chrome is given a wrong height due to Chrome for Android Check HOT 4
- Doesn't work in IE10
- Reducing the size of the browser HOT 2
- After clicking the toggle button the scroll seems disabled HOT 1
- Old IE support HOT 1
- Multiple Pikabus should make multiple shades HOT 4
- Pikabu 2.0 does not handle orientation change well
- extra white space on Android 4 browsers HOT 2
- Pikabu 2.0: how to mark up the body content HOT 1
- Issue with pikabu after using browsers back button on iOS8 HOT 1
- Max-width px sidebar HOT 1
- Pikabu 2.0: Non-standard classes don't work
- Pikabu 2.0: Perspective effect doesn't have a proper close hit target HOT 5
- Pikabu 2.0: Automated tests don't work HOT 2
- Pikabu 2.0: Styling issue when opening menu while partially scrolled (Chrome)
- data attribute pikabu initialization not working
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 pikabu.