You should probably set ```self.options.positionFixed = true``` when position == top.
I dont think you would need this second condition then.