Rolf and Angel,
OK, I have a lot of formatting to do, but I have this darn thing working on an
iPad.
I was evidently correct in my first interpretation of the docs:
Console:
Throws up a console window from which a user can enter script commands and
monitor the messages returned by Jmol as,
Rolf,
Yeah, I forgot that fixed can still be dragged. The leap behavior is that a
click makes it jump to another part of the page, and then in becomes draggable.
In tracking where this div is located in the DOM, it sure looks like it’s just
OUTSIDE the body. It’s originally set to
Am 28.07.17 um 20:14 schrieb Otis Rothenberger:
Rolf and Angel,
OK, I’m close. Rolf, I’m taking a JS shortcut with your function, but I
think it’s valid.
1) $("#jmolApplet0_console").css("top",20);
$("#jmolApplet0_console").css("left",20);
$("#jmolApplet0_console").css("position","fixed")
More Info. I should have also checked this:
jmolApplet0_console.innerText
closehelp
Otis
--
Otis Rothenberger
o...@chemagic.org
http://chemagic.org
> On Jul 28, 2017, at 2:14 PM, Otis Rothenberger wrote:
>
> Rolf and Angel,
>
> OK, I’m close. Rolf, I’m taking a JS
Rolf and Angel,
OK, I’m close. Rolf, I’m taking a JS shortcut with your function, but I think
it’s valid.
1) $("#jmolApplet0_console").css("top",20);
$("#jmolApplet0_console").css("left",20);
$("#jmolApplet0_console").css("position","fixed")
Obediently, snaps the console to 20, 20, but it’s
> Also, $("#JmolApplet0_console").length equals zero, which suggests that the
> div of that name
> does not exist.
... that gives a length of one in one of my pages
Do you have a url I can look at?
---
El software de antivirus Avast ha analizado este correo electrónico en busca de
Am 28.07.17 um 18:35 schrieb Otis Rothenberger:
All,
I had some confused wording in my previous note!
Here’s my dilemma expressed more concisely: If the console is visible,
then the following have no affect:
$("#JmolApplet0_console").css("position","fixed”);
All,
I had some confused wording in my previous note!
Here’s my dilemma expressed more concisely: If the console is visible, then the
following have no affect:
$("#JmolApplet0_console").css("position","fixed”);
$("#JmolApplet0_console").css("position","fixed", "important");
This is true with
Hi Otis
Not sure if I get your exact intention.
JSmol creates the automatically, at least on
first invocation,
so rather than ading that div myself, I'd try forcing its css properties.
Hav you tried a rule with !important ?
> But evidently a movable absolute object inside a position fixed
Bob,
Is there any way I can use css to fix the CSS position of the Jmol console on
my page at specific coordinates. I know how to do this, but I don’t know how to
do it with the console.
I’ve tried using a object containing the
console per the docs. But evidently a movable absolute object
10 matches
Mail list logo