enyo / opentip

Opentip is an open source javascript tooltip based on the protoype framework.
http://www.opentip.org
1.25k stars 401 forks source link

Element outside the bubble #142

Open akalinowski opened 7 years ago

akalinowski commented 7 years ago

Hi, what can be the reason that sometimes button is outside the tip as shown in the picture below: opentip-btn-outside-tip

How opentip calculate of tip height?

My html is: `

```

26/39

Close

Na początku definujemy stałe szerokość i wysokość planszy:

  1. var SCREEN_WIDTH = 720;
  2. var SCREEN_HEIGHT = 500;

 

Kolejno wystęują następujące stałe:

  1. // minimalny czas jaki musi minac
  2. // aby wyswietlic kreta na planszy
  3. var INITIAL_TIME = 600;
  4. // czas w obrebie ktorego moze
  5. // pojawic sie kret na planszy
  6. var INITIAL_TIME_RANGE = 1400;
  7. // minimalny czas wyswietlenia kreta
  8. var MOLE_DELAY = 500;
  9. // czas w obrebie ktorego bedzie 
  10. // wyswietlony kret na planszy
  11. var MOLE_DELAY_RANGE = 1000;
  12. // czas miedzy schowaniem kreta, 
  13. // a wyswietleniem napisu 'You Lose'
  14. var MOLE_DELAY_AFTER_HIDING = 400;

[Edit]

```

`

ChBernat commented 7 years ago

Hello, could you show us a working example? e.g. via jsfiddle, it would be very appreciated. :)