Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 OS-All Area-Misc

New issue 8478 by david71rj: Better support to Chrome.app
http://code.google.com/p/chromium/issues/detail?id=8478

chrome: min/maxHeight and min/maxWidth to App.
Can work:
// Verify if is appfied, if yes...
if(window.isApp)
{
  // Set the minimum dimension of window
  window.minWidth = 640; // or window.style.minWidth
  window.minHeight = 480;

  // Set the maximum dimension
  window.maxWidth = 1024
  window.maxHeight = 768;

  // Set the current dimension
  window.width = window.maxWidth;
  window.height = window.maxHeight;

  // Execute function on resize
  window.onresize = function()
  {
   document.title = 'New dimension is ' + window.width + 'px x ' +
window.height + 'px';
  }

  // Execute when minimize
  window.onminimize = false; // Disable minimize button

  // Execute when maximize
  window.onmaximize = false; // Disable maximize button

  // Execute when move
  window.onmove = function()
  {
   // Animation on background on move
   ...style.backgroundPosition = window.x + 'px ' + window.y + 'px';
  }
}

This can help with "web app" (Chrome > New app shortcut).

Bye

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to