Using datepicker of jquery-ui

  1. I did as below, and functionally, it works.
    But the problem is datepicker’s calendar ui appears broken. (bare ui, and not in the right position)

(I have no idea how to fix this. It’s not so easy to find right way by googling or searching forums.)

appears broken-2

import '../lib/jQuery/jquery.ui.min.js';    // it's there

Template.body.onRendered(function(){
  
  $( "#datepicker" ).datepicker();
  $( "#datepicker" ).datepicker("option", "dateFormat", "dd/mm/yy");

in html, of course,

<input type="text" name="dueDate" id="datepicker"

(BTW, I found how to use datepicker in the right way here:
https://stackoverflow.com/questions/30573867/how-to-use-jquery-code-in-meteor )