sketchucation logo sketchucation
    • Login
    1. Home
    2. marcosyu26
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Groups 1

    marcosyu26

    @marcosyu26

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    marcosyu26 Unfollow Follow
    registered-users

    Latest posts made by marcosyu26

    • RE: Close a WebDialog, THEN execute ruby code?

      I did some workaround on this behavior by adding an event listener on the dialog box via JS. This way the callback will be triggered.

      
       window.addEventListener("beforeunload", function (e) {
          sketchup.focus_dialog()
        }, false);
      
      
      
          @dlg.add_action_callback('focus_dialog') do |ac|
            @dlg.bring_to_front
          end
      
      
      posted in Developers' Forum
      M
      marcosyu26