src/Tools/jEdit/src/completion_popup.scala
changeset 72974 3afd293347cc
parent 71704 b9a5eb0f3b43
child 73120 c3589f2dff31
equal deleted inserted replaced
72973:fc69884a6e5a 72974:3afd293347cc
   683   def active_range: Option[Text.Range] =
   683   def active_range: Option[Text.Range] =
   684     if (isDisplayable) opt_range else None
   684     if (isDisplayable) opt_range else None
   685 
   685 
   686   private val popup =
   686   private val popup =
   687   {
   687   {
   688     val screen = JEdit_Lib.screen_location(layered, location)
   688     val screen = GUI.screen_location(layered, location)
   689     val size =
   689     val size =
   690     {
   690     {
   691       val geometry = JEdit_Lib.window_geometry(completion, completion)
   691       val geometry = JEdit_Lib.window_geometry(completion, completion)
   692       val bounds = JEdit_Rendering.popup_bounds
   692       val bounds = JEdit_Rendering.popup_bounds
   693       val w = geometry.width min (screen.bounds.width * bounds).toInt min layered.getWidth
   693       val w = geometry.width min (screen.bounds.width * bounds).toInt min layered.getWidth